cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
359
Views
0
Helpful
4
Replies

access http server on a device without gateway from internet

ant1881
Level 1
Level 1

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

4 Replies 4

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 ?

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

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.

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

Review Cisco Networking for a $25 gift card