RE: port redirect for locally generated request

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

 



Use REDIRECT:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

specify an interface if necessary.


-----Original Message-----
From: netfilter-admin@xxxxxxxxxxxxxxxxxxx
[mailto:netfilter-admin@xxxxxxxxxxxxxxxxxxx]On Behalf Of Sundaram
Ramasamy
Sent: Friday, August 29, 2003 6:56 AM
To: netfilter@xxxxxxxxxxxxxxxxxxx
Subject: port redirect for localy generated request



Hi,

With this rule incoming request for port 80 redirected to port 8080. But
this is not working localy generated request.

iptables -t nat -A PREROUTING -p tcp --dport 80 -d LISTEN_IP -j DNAT --to
LISTEN_IP:80

How will i redirected local request port 80 to port 8080 ?

Thanks





[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