forwarding local ports

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

 



Hello,

I want forward local ports to remote server, for example:
for `telnet localhost 80` must answer webserver from remote IP

I have this rule:
iptables -t nat -A OUTPUT -p TCP -d 127.0.0.1 --dport 80 -j DNAT --to 192.168.0.254:80
but doesnt work.
of course i have support of routing, iptables and nat in kernel 

Im sure that rule is right and in kernel 2.4 works.
Is problem in 2.6 or where?

kernel 2.6.18

regards 
Martin Korous


[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