From: "Sez" <sezmillenium@yahoo.es>
To: netfilter@lists.netfilter.org
Subject: Iptables do nat with Protocol 47 or GRE
Date: Fri, 14 May 2004 12:24:00 +0200 [thread overview]
Message-ID: <E1BOZqT-0001Ro-Vu@vishnu.netfilter.org> (raw)
Hi people,
I have a a vpn server in my Intranet. If i want access to this server i will
pass my firewall.
The diagram is
VPN_CLIENT(W2k box) ---- router ---- (192.168.55.94 eth0) FIREWALL
(192.168.55.95 eth1)-------- (192.168.55.92)VPN_SERVER
I create all iptables rules and VPN_CLIENT can connect to server. One client
go well. But if another client try to connect he has this error
*** error 721: Remote server don't response. ***
I see in the log file that all packets from second client was dropped. And
first client go well his connection.
Here are my important iptables rules:
iptables -t nat -A PREROUTING -s 0.0.0.0/0 -d 192.168.55.94 -p TCP --dport
1723 -j DNAT --to 192.168.55.92:1723
iptables -t nat -A PREROUTING -s 0.0.0.0/0 -d 192.168.55.94 -p GRE -j DNAT
--to 192.168.55.92
iptables -t nat -A POSTROUTING -p TCP -s 0.0.0.0/0 -d 192.168.55.92 --dport
1723 -o eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -p GRE -s 0.0.0.0/0 -d 192.168.55.92 -o eth1
-j MASQUERADE
And other rules...
I receive packet
SOURCE --> IP_VPN_CLIENT
DESTINATION --> 192.168.55.94
and I forward all packets and change ip source and ip destination.
Firewall out
SOURCE --> 192.168.55.95
DESTINATION--> 192.168.55.92
I also do the same to return de packet. I change the ip source, because
VPN_SERVER has another gateway, it don't have Firewall with GATEWAY.
Don't Iptables have nat with differents gre connections??? Or have I some
errors?
Thanks!
SERGI
next reply other threads:[~2004-05-14 10:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-14 10:24 Sez [this message]
2004-05-14 10:39 ` Iptables do nat with Protocol 47 or GRE Antony Stone
2004-05-14 10:50 ` Sez
2004-05-14 10:59 ` Antony Stone
2004-05-14 11:14 ` Sez
2004-05-14 11:30 ` Antony Stone
2004-05-14 12:11 ` Sez
2004-05-14 12:27 ` Antony Stone
2004-05-14 12:15 ` Sez
2004-05-14 12:44 ` Antony Stone
2004-05-14 13:00 ` Sez
2004-05-14 13:14 ` Antony Stone
2004-05-14 14:12 ` Alexis
2004-05-14 16:52 ` Sezmillenium
-- strict thread matches above, loose matches on Subject: below --
2004-05-14 16:52 Daniel Chemko
2004-05-14 17:42 Daniel Chemko
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=E1BOZqT-0001Ro-Vu@vishnu.netfilter.org \
--to=sezmillenium@yahoo.es \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox