* NATing PPTP GRE traffic
@ 2004-01-20 14:11 Derek Vincent
2004-01-20 14:37 ` Philipp Stader
2004-01-20 14:47 ` Tom Eastep
0 siblings, 2 replies; 5+ messages in thread
From: Derek Vincent @ 2004-01-20 14:11 UTC (permalink / raw)
To: netfilter
I have been try to setup a firewall that will pass PPTP/L2TP traffic to a
windows 2003 server inside the network...
I am using Mandrake 9.2 with the 2.4.22-10mdksecure (delivered) kernel.
I believe that I have shorewall configured correctly rules below:
DNAT:info net loc:192.168.105.1 tcp 1701 -
DNAT:info net loc:192.168.105.1 udp 1701 -
DNAT:info net loc:192.168.105.1 tcp 1723 -
DNAT:info net loc:192.168.105.1 47 - -
and I am loading the following netfilter modules for natting pptp:
ip_nat_pptp
ip_conntrack_pptp
ip_nat_proto_gre
ip_conntrack_proto_gre
The issue I am having is the when I try to VPN in to the nated windows
server things seem to go ok for the initial communication but I get the
error below:
protocol 47 unreachable [tos 0xc0]
After this occurs a half dozen times the vpn client errors out.
I had found a googled message regarding something similar with the 2.4.22
kernel and tried to the patch-o-matic on it and I suspect that the mandrake
2.4.2-10mdk already has this issue patched since I did not see any patches
that discussed this issue...
I was wondering if there is anything I have missed in the FW rules or if I
am missing load a module...
Cheers and the for any help,
D.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: NATing PPTP GRE traffic
2004-01-20 14:11 NATing PPTP GRE traffic Derek Vincent
@ 2004-01-20 14:37 ` Philipp Stader
2004-01-20 14:47 ` Tom Eastep
1 sibling, 0 replies; 5+ messages in thread
From: Philipp Stader @ 2004-01-20 14:37 UTC (permalink / raw)
To: netfilter; +Cc: 'Derek Vincent'
> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of
> Derek Vincent
> Sent: Tuesday, January 20, 2004 3:12 PM
> To: netfilter@lists.netfilter.org
> Subject: NATing PPTP GRE traffic
>
> I have been try to setup a firewall that will pass PPTP/L2TP
> traffic to a windows 2003 server inside the network...
>
> I am using Mandrake 9.2 with the 2.4.22-10mdksecure
> (delivered) kernel.
>
> I believe that I have shorewall configured correctly rules below:
>
> DNAT:info net loc:192.168.105.1 tcp 1701 -
> DNAT:info net loc:192.168.105.1 udp 1701 -
> DNAT:info net loc:192.168.105.1 tcp 1723 -
> DNAT:info net loc:192.168.105.1 47 - -
>
> and I am loading the following netfilter modules for natting pptp:
>
> ip_nat_pptp
> ip_conntrack_pptp
> ip_nat_proto_gre
> ip_conntrack_proto_gre
>
> The issue I am having is the when I try to VPN in to the
> nated windows server things seem to go ok for the initial
> communication but I get the error below:
>
> protocol 47 unreachable [tos 0xc0]
>
> After this occurs a half dozen times the vpn client errors out.
>
> I had found a googled message regarding something similar
> with the 2.4.22 kernel and tried to the patch-o-matic on it
> and I suspect that the mandrake 2.4.2-10mdk already has this
> issue patched since I did not see any patches that discussed
> this issue...
>
> I was wondering if there is anything I have missed in the FW
> rules or if I am missing load a module...
>
>
> Cheers and the for any help,
>
> D.
>
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 1723 -j DNAT
--to-destination 192.168.200.99
iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp -d 192.168.200.99
--dport 1723 -j ACCEPT
iptables -A FORWARD -i ppp0 -m state --state NEW -p 47 -d 192.168.200.99 -j
ACCEPT
iptables -t nat -A PREROUTING -i ppp0 -p 47 -j DNAT --to-destination
192.168.200.99
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
This works for me. PPTP Connections. We didn't try anything else. The Box is
running Debian Woody with ADSL Internet connection. Kernel is unpatched as
nobody on the LAN needs VPN Connections to connect anywhere else.
192.168.200.99 is our Windows 2003 Server.
Hope that helps
Kind regards
Phil
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NATing PPTP GRE traffic
[not found] <20040120143327.32258.qmail@e-xyn.com>
@ 2004-01-20 14:37 ` Derek Vincent
2004-01-20 14:59 ` Antony Stone
0 siblings, 1 reply; 5+ messages in thread
From: Derek Vincent @ 2004-01-20 14:37 UTC (permalink / raw)
To: Philipp Stader, netfilter
Philipp, I not running ppp on the firewall it running on a server behind the
firewall... so I do not have ppp0 interface...
D.
----- Original Message -----
From: "Philipp Stader" <me@ph1l.de>
To: <netfilter@lists.netfilter.org>
Cc: "'Derek Vincent'" <derek.vincent@kemikal.net>
Sent: Tuesday, January 20, 2004 9:37 AM
Subject: RE: NATing PPTP GRE traffic
>
> > -----Original Message-----
> > From: netfilter-admin@lists.netfilter.org
> > [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of
> > Derek Vincent
> > Sent: Tuesday, January 20, 2004 3:12 PM
> > To: netfilter@lists.netfilter.org
> > Subject: NATing PPTP GRE traffic
> >
> > I have been try to setup a firewall that will pass PPTP/L2TP
> > traffic to a windows 2003 server inside the network...
> >
> > I am using Mandrake 9.2 with the 2.4.22-10mdksecure
> > (delivered) kernel.
> >
> > I believe that I have shorewall configured correctly rules below:
> >
> > DNAT:info net loc:192.168.105.1 tcp 1701 -
> > DNAT:info net loc:192.168.105.1 udp 1701 -
> > DNAT:info net loc:192.168.105.1 tcp 1723 -
> > DNAT:info net loc:192.168.105.1 47 - -
> >
> > and I am loading the following netfilter modules for natting pptp:
> >
> > ip_nat_pptp
> > ip_conntrack_pptp
> > ip_nat_proto_gre
> > ip_conntrack_proto_gre
> >
> > The issue I am having is the when I try to VPN in to the
> > nated windows server things seem to go ok for the initial
> > communication but I get the error below:
> >
> > protocol 47 unreachable [tos 0xc0]
> >
> > After this occurs a half dozen times the vpn client errors out.
> >
> > I had found a googled message regarding something similar
> > with the 2.4.22 kernel and tried to the patch-o-matic on it
> > and I suspect that the mandrake 2.4.2-10mdk already has this
> > issue patched since I did not see any patches that discussed
> > this issue...
> >
> > I was wondering if there is anything I have missed in the FW
> > rules or if I am missing load a module...
> >
> >
> > Cheers and the for any help,
> >
> > D.
> >
>
> iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 1723 -j DNAT
> --to-destination 192.168.200.99
> iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp -d 192.168.200.99
> --dport 1723 -j ACCEPT
>
> iptables -A FORWARD -i ppp0 -m state --state NEW -p 47 -d
92.168.200.99 -j
> ACCEPT
> iptables -t nat -A PREROUTING -i ppp0 -p 47 -j DNAT --to-destination
> 192.168.200.99
>
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> This works for me. PPTP Connections. We didn't try anything else. The Box
is
> running Debian Woody with ADSL Internet connection. Kernel is unpatched as
> nobody on the LAN needs VPN Connections to connect anywhere else.
> 192.168.200.99 is our Windows 2003 Server.
>
> Hope that helps
>
> Kind regards
>
> Phil
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NATing PPTP GRE traffic
2004-01-20 14:11 NATing PPTP GRE traffic Derek Vincent
2004-01-20 14:37 ` Philipp Stader
@ 2004-01-20 14:47 ` Tom Eastep
1 sibling, 0 replies; 5+ messages in thread
From: Tom Eastep @ 2004-01-20 14:47 UTC (permalink / raw)
To: Derek Vincent, netfilter
On Tuesday 20 January 2004 06:11 am, Derek Vincent wrote:
> I have been try to setup a firewall that will pass PPTP/L2TP traffic to a
> windows 2003 server inside the network...
>
> I am using Mandrake 9.2 with the 2.4.22-10mdksecure (delivered) kernel.
>
> I believe that I have shorewall configured correctly rules below:
>
> DNAT:info net loc:192.168.105.1 tcp 1701 -
> DNAT:info net loc:192.168.105.1 udp 1701 -
> DNAT:info net loc:192.168.105.1 tcp 1723 -
> DNAT:info net loc:192.168.105.1 47 - -
>
> and I am loading the following netfilter modules for natting pptp:
>
> ip_nat_pptp
> ip_conntrack_pptp
> ip_nat_proto_gre
> ip_conntrack_proto_gre
>
> The issue I am having is the when I try to VPN in to the nated windows
> server things seem to go ok for the initial communication but I get the
> error below:
>
> protocol 47 unreachable [tos 0xc0]
>
> After this occurs a half dozen times the vpn client errors out.
>
> I had found a googled message regarding something similar with the 2.4.22
> kernel and tried to the patch-o-matic on it and I suspect that the mandrake
> 2.4.2-10mdk already has this issue patched since I did not see any patches
> that discussed this issue...
>
> I was wondering if there is anything I have missed in the FW rules or if I
> am missing load a module...
You should probably post questions of this sort on the Shorewall list rather
than on this list. If you chose to have Mandrake configure Shorewall for you,
the 'loc' zone is empty and the zone for the local network is called 'masq'.
The rules you need to forward PPTP traffic to the server are thus:
DNAT net masq:192.168.105.1 tcp 1723
DNAT net masq:192.168.105.1 47
-Tom
--
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool
Shoreline, \ http://shorewall.net
Washington USA \ teastep@shorewall.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NATing PPTP GRE traffic
2004-01-20 14:37 ` Derek Vincent
@ 2004-01-20 14:59 ` Antony Stone
0 siblings, 0 replies; 5+ messages in thread
From: Antony Stone @ 2004-01-20 14:59 UTC (permalink / raw)
To: netfilter
On Tuesday 20 January 2004 2:37 pm, Derek Vincent wrote:
> Philipp, I not running ppp on the firewall it running on a server behind
> the firewall... so I do not have ppp0 interface...
So substitute the eth0, eth1, or whatever name of your external interface for
ppp0 in the rules suggested :)
Antony.
--
"Note: Windows 98, Windows 98SE and Windows 95 are not affected by [MS
Blaster]. However, these products are no longer supported. Users of these
products are strongly encouraged to upgrade to later versions."
(which *are* affected by MS Blaster...)
http://www.microsoft.com/security/security_bulletins/ms03-026.asp
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-20 14:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-20 14:11 NATing PPTP GRE traffic Derek Vincent
2004-01-20 14:37 ` Philipp Stader
2004-01-20 14:47 ` Tom Eastep
[not found] <20040120143327.32258.qmail@e-xyn.com>
2004-01-20 14:37 ` Derek Vincent
2004-01-20 14:59 ` Antony Stone
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.