* SNAT packet generated by the machine running iptables
@ 2005-06-13 18:41 Baskaran Mohandass
0 siblings, 0 replies; only message in thread
From: Baskaran Mohandass @ 2005-06-13 18:41 UTC (permalink / raw)
To: netfilter
Hi all,
I am trying to source nat the packet generated locally using
iptables. Machine is running Fedora core2 and one of the interface
address is 5.5.5.7. Sip server sends a packet with source port 5060 and
ip address 5.5.5.7. I want to change the IP address and the source port
when it goes out. Reading the IPtables manual only rule i can think of is
iptables -t nat -A POSTROUTING --protocol udp --source-port 5060 -j
SNAT --to-source 5.5.5.7:1024-32000.
[root@sipserver2 ~]# uname -a
Linux sipserver2.baski.com 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004
i686 i686 i386 GNU/Linux
Unfortunately it does not work. IPtables also says that locally
generated packets are modified in the output chain and there is not NAT
capability in there. I went through all the messages in the archive for
SNAT and OUTPUT, So I would really appreciate any help on this.
TIA
..baski
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-13 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13 18:41 SNAT packet generated by the machine running iptables Baskaran Mohandass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox