redirection in local private network problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux