SNAT

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

 



Hello,
How I can do that the iptables that my IP INVALID (192.168.0.1) in the
OUTPUT transform my IP INVALID for ip valid in the output (200.200.200.1)
using SNAT

Example IP:
Internal 192.168.0.1 port 53
External 200.200.200.1 port 53

I want when to request internal 192.168.0.1:53 he leaves how ip external
200.200.200.1:53
I tried to do that. But no this working
iptables -t nat -I POSTROUTING -p udp -s 192.168.0.1 --sport 53 -j
SNAT --to-source 200.200.200.1:53


Breno Cardoso Perucchi
breno@omegatec.net





[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