06-19-2017 02:32 PM - edited 03-05-2019 08:44 AM
I have a pc with ip 192.168.40.40 netmask 255.255.255.0 without gateway running http server on port 80
I want to reach that port from internet for example http://PUBLIC-IP
I have a cisco 2811 that I would like to configure with ip nat inside / outside
on the outside I put the public-ip and on the inside the private ip like 192.168.40.42
The problem is that requests directed to 192.168.40.40 should come from 192.168.40.42 and not from the public ip of the client requesting the webpage
could you help me?
I can't add static routes or gateway on the pc 192.168.40.40
please help me
06-20-2017 05:14 AM
Hello,
what do you mean when you say the PC with IP address 192.168.40.40 does not have a gateway ? Can you provide a schematic drawing of what you are trying to accomplish ?
06-20-2017 05:35 AM
the pc 192.168.40.40 has no default route set
it can't reach internet address, for example it can't ping 8.8.8.8
it can reach only ip like 192.168.40.* since its netmask is 255.255.255.0
so I have to hide internet address of the client (example 80.xxx.xxx.xx), translating it to a private ip like 192.168.40.xxx so that the http server can talk to it directly without the need of a router/gateway
06-20-2017 06:15 AM
Hello,
if your server has no default gateway, there is no way you can reach it from the Internet, as the NAT inside interface is the interface configured with the IP address of the gateway for the server.
06-20-2017 07:18 AM
at the moment, I have a computer running pfsense that does this work and through it I can access the webserver
I would like to do the same job, using a cisco instead, so I don't need another pc always on
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