SIP Natting

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

 



Hi,

Below is my rules for my SIP device: -

iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 5060 -j DNAT --to 172.16.10.21:5060
iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 8000 -j DNAT --to 172.16.10.21:8000


iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Can I have something like below if I want to have more than one SIP devices?

iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 5060 -j DNAT --to 0.0.0.0:5060
iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 8000 -j DNAT --to 0.0.0.0:8000


Regards,
ro0ot





[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