Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Enrique Huerta de la Fuente <ehuerta@ixer.mx>
To: giles@coochey.net
Cc: netfilter@vger.kernel.org
Subject: Re: Masquerade UDP doesn't work
Date: Thu, 9 Feb 2012 23:41:46 -0600 (CST)	[thread overview]
Message-ID: <23009397.2908.1328852505967.JavaMail.root@ixer.mx> (raw)
In-Reply-To: <1993130.2906.1328852412074.JavaMail.root@ixer.mx>

>
>> 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
>>
>
>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.



       reply	other threads:[~2012-02-10  5:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1993130.2906.1328852412074.JavaMail.root@ixer.mx>
2012-02-10  5:41 ` Enrique Huerta de la Fuente [this message]
     [not found] <9435037.2791.1328765711483.JavaMail.root@ixer.mx>
2012-02-09  5:35 ` Masquerade UDP doesn't work Enrique Huerta de la Fuente
2012-02-09 11:05   ` Giles Coochey
2012-02-14  1:09     ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23009397.2908.1328852505967.JavaMail.root@ixer.mx \
    --to=ehuerta@ixer.mx \
    --cc=giles@coochey.net \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox