Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ray Leach <spoons@rchq.co.za>
To: "Gáspár Lajos" <swifty@freemail.hu>
Cc: Bruce Ferrell <bferrell@baywinds.org>, netfilter@lists.netfilter.org
Subject: Re: Looking to exclude certain destinations from masquarade
Date: Sat, 23 Jun 2007 09:30:03 +0200	[thread overview]
Message-ID: <467CCBFB.2080002@rchq.co.za> (raw)
In-Reply-To: <467BCEBD.7030309@freemail.hu>

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]



Gáspár Lajos wrote:
> Bruce Ferrell írta:
>> I am trying to establish an ipsec tunnel from a system that is also a 
>> snat router.  so far I seem to be able to have my masquerade or my 
>> vpn tunnel but not both.
>>
>> the basic rules I'm using are these:
>>
>> $IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state 
>> ESTABLISHED,RELATED -j ACCEPT
>> $IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
>> $IPTABLES -A FORWARD -j LOG
or you could use a rule like this:
$IPTABLES -t nat -A POSTROUTING -o $EXITIF -s $EXCLUDED_IP -j RETURN


>> $IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
>>
> These are VERY BASIC rules...
>>
>> Any suggestions?
>>
>>
> You can use the MARK/CONNMARK target ot mark the vpn/nat packets.
> With that information you will be able to do the NATing or leting 
> through the vpn...
>
> Swifty
>
>
>
>
>

-- 
<img src='http://www.danasoft.com/sig/spoonssig.jpg' />
--------------------------------------------------
RCHQ Hobbies cc
http://www.rchq.co.za and http://store.rchq.co.za
Fax: +27 86 652 2773       eMail: admin@rchq.co.za
P O Box 10376, Vorna Valley, Midrand, 1686
--------------------------------------------------


      reply	other threads:[~2007-06-23  7:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 21:21 Looking to exclude certain destinations from masquarade Bruce Ferrell
2007-06-22 13:29 ` Gáspár Lajos
2007-06-23  7:30   ` Ray Leach [this message]

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=467CCBFB.2080002@rchq.co.za \
    --to=spoons@rchq.co.za \
    --cc=bferrell@baywinds.org \
    --cc=netfilter@lists.netfilter.org \
    --cc=swifty@freemail.hu \
    /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