destination port rewrite

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

 



Hi Everyone,
I have a somewhat unusual requirement here. Please let me know if it is
not clear enough.

>From inside a firewall connected to the internet on outside, I would like
for all outgoing packets that their destination ports be rewritten in
addition to being natted.


e.g
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 --dport=8080 \
         -j SNAT -o eth0 --to-source $external_ip --dport=80.


Just to make it more clear
for e.g
Behind ipfilter the request will be
FROM $internal_ip to somedomain.com:8080 -> FROM $external_ip TO
somedomain.com:80

Is this possible in ipfilters.
Kind Regards,
-Mark





[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