Skip to contentSkip to conversation

Masquerade UDP doesn't work

DISCUSSION Enrique Huerta de la Fuente 1 participant 1 message Feb 10, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines
Quoted 10 lines

Hello,

Masquerade do not work at a UDP port, but if it works at a TCP port.

(works) iptables -t nat -I POSTROUTING -m tcp -p tcp --dport 22 -o ppp0 -j MASQUERADE
(not working) iptables -t nat -I POSTROUTING -m udp -p udp --dport 1195 -o ppp0 -j MASQUERADE

Quoted 4 lines

The "-m udp" confuses me. Do you really need to specify that module, try it without the -m option for UDP, I don't tend to use it for TCP either, but if it's not broken, don't fix it...

Hello,

I try:
iptables -t nat -I POSTROUTING -p udp --dport 1195 -o ppp0 -j MASQUERADE

but it does not work.