Skip to contentSkip to conversation

redirection in local private network problem

DISCUSSION [email protected] 2 participants 2 messages Feb 10, 2004 – Feb 11, 2004

lore
Share & tools
lore
#0 lore raw

hi,

configuration first:

router eth0 (192.168.1.1), eth1 (x.x.x.x public ip) www host (192.168.1.100)
clients (192.168.1.0/24)

I want to connect by 192.168.1.1 on port e.g. 1025 to local host at 192.168.1.100:80 but it doesn't work from local network.

If I write into iptables:

nat
-A PREROUTING -i eth1 -p tcp -m tcp --dport 1025 -j DNAT --to-destination 192.168.1.100:80

it works good from external network (it's fine)

How to make it working in local net?

e.g.

192.168.1.x -> 192.168.1.1:1025 -> (redir) 192.168.1.100:80

please respond to archi(at)archi.szn.pl

#1 lore raw
Quoted 10 lines · On Tuesday 10 February 2004 1:10 am, [email protected] wrote:

hi,

configuration first:

router eth0 (192.168.1.1), eth1 (x.x.x.x public ip) www host (192.168.1.100)
clients (192.168.1.0/24)

I want to connect by 192.168.1.1 on port e.g. 1025 to local host at 192.168.1.100:80 but it doesn't work from local network.

http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-10.html

Antony.

Signature · 10 lines
In science, one tries to tell people
in such a way as to be understood by everyone
something that no-one ever knew before.

In poetry, it is the exact opposite.

 - Paul Dirac

                                                     Please reply to the list;
                                                           please don't CC me.