All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Info DataCenter1.com" <info@datacenter1.com>
To: iptables <netfilter@lists.netfilter.org>
Subject: ipsec nat and iptables
Date: Thu, 25 Aug 2005 11:27:45 -0400	[thread overview]
Message-ID: <430DE371.7020206@datacenter1.com> (raw)

Hello

I'm trying to setup a network to network vpn using native ipsec support 
on Centos 4.1


Network A
eth0=  conected to internet
eth1= conected to private lan 192.168.1.1

Network B
eth0 conected to Internet
eth1= conected to private lan 192.168.2.1

 >From server A I'm able to ping 192.168.2.1 and viceversa but computers 
in the private lan can't see the other side

I'm using pre-shared keys also I set nat_transversal in racoon

Also I set my servers like iptables router
iptables -A INPUT -m state --state INVALID -j DROP
iptables -A FORWARD -m state --state INVALID -j DROP
iptables -A OUTPUT -m state --state INVALID -j DROP

iptables -A FORWARD -i eth1 -o eth0
iptables -A FORWARD -i eth0 -o eth1

iptables -P INPUT DROP
iptables -P FORWARD DROP

iptables -A INPUT -i eth0 -j ACCEPT
iptables -A INPUT -i ethY -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE


             reply	other threads:[~2005-08-25 15:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 15:27 Info DataCenter1.com [this message]
2005-08-26 13:03 ` ipsec nat and iptables /dev/rob0
  -- strict thread matches above, loose matches on Subject: below --
2005-08-25 15:31 Guillermo Calvo
2005-08-25 15:45 Gary W. Smith

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=430DE371.7020206@datacenter1.com \
    --to=info@datacenter1.com \
    --cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.