07-02-2020 10:31 AM
Hello Cisco Team,
I am using Static NAT to make my internal server accessible from Internet.
My WAN IP is *.*.*.117 255.255.255.248
My Server LAN IP is 10.132.62.25
I am using CISCO 2811 router.
WAN IP on int fe0/1 ip nat outside
LAN IP on int fe0/0 ip nat inside
ip nat inside source static tcp 10.132.62.25 80 *.*.*.117 8100
i tried to open web server *.*.*.117 8100 from my home pc with public ip 59.89.60.235.
I didn't get anything.
My ip nat translations are:-
CISCO2811#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp *.*.*.117:8100 10.132.62.25:80 59.89.60.235:52750 59.89.60.235:52750
tcp *.*.*.117:8100 10.132.62.25:80 59.89.60.235:52752 59.89.60.235:52752
Also ping from router is : -
CISCO2811#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/21/24 ms
CISCO2811#ping 10.132.62.25
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.132.62.25, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
CISCO2811#telnet 10.132.62.25 80
Trying 10.132.62.25, 80 ... Open
^C
HTTP/1.1 400 Bad Request
Date: Thu, 02 Jul 2020 17:02:40 GMT
Server: Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.2.31
....
[Connection to 10.132.62.25 closed by foreign host]
Kindly assist. Where is the problem?
07-02-2020 12:07 PM
Hello,
what does the rest of your configuration look like ?
400 Bad Request usually means the server doesn't accept the client request, so the issue is likely not the NAT statement, but the server configuration.
07-03-2020 09:42 AM
07-02-2020 12:37 PM - edited 07-02-2020 12:39 PM
Hello
@ArunVerma0530 wrote:
Hello Cisco Team,
I am using Static NAT to make my internal server accessible from Internet.
My WAN IP is *.*.*.117 255.255.255.248
My Server LAN IP is 10.132.62.25
I am using CISCO 2811 router.
WAN IP on int fe0/1 ip nat outside
LAN IP on int fe0/0 ip nat inside
ip nat inside source static tcp 10.132.62.25 80 *.*.*.117 8100
i tried to open web server *.*.*.117 8100 from my home pc with public ip 59.89.60.235.
I didn't get anything.
My ip nat translations are:-
CISCO2811#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp *.*.*.117:8100 10.132.62.25:80 59.89.60.235:52750 59.89.60.235:52750
tcp *.*.*.117:8100 10.132.62.25:80 59.89.60.235:52752 59.89.60.235:52752Also ping from router is : -
FYI-
Error 4xx messages are client related
Error 5xx messages are server related
How are you trying to connect, via browser or telnet, if browser make sure you using http and not https in the url and ip address and not fqdn
If you have a telnet client try accessing the server telnet x.x.x117 8100 but temporally disable any software firewall running on the client
Also post the output of:
sh ip route
07-03-2020 09:35 AM
07-03-2020 09:36 AM
07-03-2020 09:44 AM
07-03-2020 12:44 PM
Hello,
what if you change the NAT statement to:
ip nat inside source static 10.132.62.25 80 *.*.*.117
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide