REDIRECT question

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

 



Hello!

Can you help me with the following:

i try to make REDIRECT on my local host -

$IPTABLES -t nat -N REDIRECT_CHAIN
$IPTABLES -t nat -A REDIRECT_CHAIN -p tcp --dport 80 -j REDIRECT --to-port 7080
$IPTABLES -t nat -A PREROUTING -j REDIRECT_CHAIN


When users in my LAN connect to my host's 80 port they are redirected to 7080 - it's ok. But when i try to do on my host - telnet localhost 80 - i get connection refused (looks like redirection doesn't work). What maybe the problem?

Best regards,
Ruslan




[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