All of lore.kernel.org
 help / color / mirror / Atom feed
* pptp + iptables
@ 2002-09-13 14:35 Alexey Sheshka
  2002-09-13 17:00 ` pptp + iptables MTU ??? Thomas Lussnig
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Sheshka @ 2002-09-13 14:35 UTC (permalink / raw)
  To: netfilter

Hi !

I have folowing troble.
Then I'm connecting to pptp server (195.x.x.34)  from Windows2000 box (192.168.15.132) pptp connection dies 
with error message : "The specified port is not connected."
I think this is netfilter problem.

My NAT box has :
iptables v1.2.7a
stock 2.4.19 kernel from ftp.kernel.org with latest patch-o-matic
ip_conntrack_pptp ip_nat_pptp ip_conntrack_proto_gre iptable_nat    propertly loaded

My NAT script:

#!/bin/bash
echo 0 > /proc/sys/net/ipv4/ip_forward
ipt=/usr/local/sbin/iptables
$ipt -p tcp -A PREROUTING -t nat -s 192.168.15.0/24 -d 0/0 --dport 80 -j DNAT --to 212.x.x.170:3128
$ipt -p tcp -A POSTROUTING -t nat -s 192.168.15.0/24 -d 0/0 --dport ! 80 -j SNAT --to 212.x.x.170
echo 1 > /proc/sys/net/ipv4/ip_forward


^ permalink raw reply	[flat|nested] 6+ messages in thread

* pptp + iptables MTU ???
  2002-09-13 14:35 pptp + iptables Alexey Sheshka
@ 2002-09-13 17:00 ` Thomas Lussnig
  2002-09-15 11:11   ` Antony Stone
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Lussnig @ 2002-09-13 17:00 UTC (permalink / raw)
  To: Alexey Sheshka, netfilter

Hi,
i have one question, when TCP packet's where send the filter change the 
MTU sice (T-Error.com problem)
But i do not acivate such an rule for UDP or GRE Protocol. Is it 
possible that this is the source for the
problems with pptp conection over an maserading server ?

Cu Thomas



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pptp + iptables MTU ???
  2002-09-13 17:00 ` pptp + iptables MTU ??? Thomas Lussnig
@ 2002-09-15 11:11   ` Antony Stone
  2002-09-15 13:57     ` Thomas Lussnig
  0 siblings, 1 reply; 6+ messages in thread
From: Antony Stone @ 2002-09-15 11:11 UTC (permalink / raw)
  To: netfilter

On Friday 13 September 2002 6:00 pm, Thomas Lussnig wrote:

> Hi,
> i have one question, when TCP packet's where send the filter change the
> MTU sice (T-Error.com problem)
> But i do not acivate such an rule for UDP or GRE Protocol. Is it
> possible that this is the source for the
> problems with pptp conection over an maserading server ?

MTU applies to IP packets, not specifically to TCP packets (which are a 
particular form of data inside an IP packet).

UDP and GRE are also transported inside IP packets, so if you need to set the 
MTU on your external interface to get TCP/IP packets to work, I think you 
should do the same thing for UDP/IP and GRE/IP packets too.

Antony.

-- 

This email was created using 100% recycled electrons.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pptp + iptables MTU ???
  2002-09-15 11:11   ` Antony Stone
@ 2002-09-15 13:57     ` Thomas Lussnig
  2002-09-15 14:03       ` Antony Stone
  2002-09-17 16:40       ` Alistair Tonner
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Lussnig @ 2002-09-15 13:57 UTC (permalink / raw)
  To: Antony Stone, netfilter

>
>
>>i have one question, when TCP packet's where send the filter change the
>>MTU sice (T-Error.com problem)
>>But i do not acivate such an rule for UDP or GRE Protocol. Is it
>>possible that this is the source for the
>>problems with pptp conection over an maserading server ?
>>    
>>
>MTU applies to IP packets, not specifically to TCP packets (which are a 
>particular form of data inside an IP packet).
>
>UDP and GRE are also transported inside IP packets, so if you need to set the 
>MTU on your external interface to get TCP/IP packets to work, I think you 
>should do the same thing for UDP/IP and GRE/IP packets too.
>
>Antony.
>
Hi,
i used this as an entry in the iptables. its mentioned in most of the 
examples. But i think it do not work for
UPD and GRE. This was the question if GRE/UDP need such spezial handling 
to maybe this is the problem for
the failed pptp connections ?
If yes mean this that i have to adjust the Mtu values on every client 
behind the server that should use pptp.
The server have the correct mtu for the ppp0 interface.

Cu Thomas

iptables -A FORWARD -j TCPMSS   -o ppp+          -p   tcp --tcp-flags   
SYN,RST SYN --clamp-mss-to-pmtu



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pptp + iptables MTU ???
  2002-09-15 13:57     ` Thomas Lussnig
@ 2002-09-15 14:03       ` Antony Stone
  2002-09-17 16:40       ` Alistair Tonner
  1 sibling, 0 replies; 6+ messages in thread
From: Antony Stone @ 2002-09-15 14:03 UTC (permalink / raw)
  To: netfilter

On Sunday 15 September 2002 2:57 pm, Thomas Lussnig wrote:

> >>i have one question, when TCP packet's where send the filter change the
> >>MTU sice (T-Error.com problem)
> >>But i do not acivate such an rule for UDP or GRE Protocol. Is it
> >>possible that this is the source for the
> >>problems with pptp conection over an maserading server ?
> >
> >MTU applies to IP packets, not specifically to TCP packets (which are a
> >particular form of data inside an IP packet).
> >
> >UDP and GRE are also transported inside IP packets, so if you need to set
> > the MTU on your external interface to get TCP/IP packets to work, I think
> > you should do the same thing for UDP/IP and GRE/IP packets too.
> >
> >Antony.
>
> Hi,
> i used this as an entry in the iptables. its mentioned in most of the
> examples. But i think it do not work for UPD and GRE.

Why do you think that ?

> This was the question if GRE / UDP need such spezial handling
> to maybe this is the problem for the failed pptp connections ?

I do not *know* whether UDP or GRE require MSS/MTU adjustments.   However I 
do know that fragmentation / MTU is handled at the IP level, which is common 
to all of TCP / UDP / GRE protocols, so I don't see why it should be specific 
to TCP.

Maybe someone else who either knows more about this than I do, or who has a 
connection which has to use MTU / MSS adjustments, can comment on this ?

Antony.

-- 

There are only 10 types of people in the world:
those who understand binary notation,
and those who don't.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pptp + iptables MTU ???
  2002-09-15 13:57     ` Thomas Lussnig
  2002-09-15 14:03       ` Antony Stone
@ 2002-09-17 16:40       ` Alistair Tonner
  1 sibling, 0 replies; 6+ messages in thread
From: Alistair Tonner @ 2002-09-17 16:40 UTC (permalink / raw)
  To: Thomas Lussnig; +Cc: Antony Stone, netfilter


	It seems to me that the initial connection would be in TCP
	form, thus this rule will (or at least should) set the rule for
	all subsidiary connections between these two points, be they
	TCP, UDP, or other... but I'm no expert on GRE in any way.
	 
	I'm sure someone will bash me on the head if I'm wrong.

	Alistair


On 2002.09.15 09:57 Thomas Lussnig wrote:
>> 
>> 
>>> i have one question, when TCP packet's where send the filter change 
>>> the
>>> MTU sice (T-Error.com problem)
>>> But i do not acivate such an rule for UDP or GRE Protocol. Is it
>>> possible that this is the source for the
>>> problems with pptp conection over an maserading server ?
>>> 
>> MTU applies to IP packets, not specifically to TCP packets (which 
>> are a particular form of data inside an IP packet).
>> 
>> UDP and GRE are also transported inside IP packets, so if you need 
>> to set the MTU on your external interface to get TCP/IP packets to 
>> work, I think you should do the same thing for UDP/IP and GRE/IP 
>> packets too.
>> 
>> Antony.
>> 
> Hi,
> i used this as an entry in the iptables. its mentioned in most of the 
> examples. But i think it do not work for
> UPD and GRE. This was the question if GRE/UDP need such spezial 
> handling to maybe this is the problem for
> the failed pptp connections ?
> If yes mean this that i have to adjust the Mtu values on every client 
> behind the server that should use pptp.
> The server have the correct mtu for the ppp0 interface.
> 
> Cu Thomas
> 
> iptables -A FORWARD -j TCPMSS   -o ppp+          -p   tcp 
> --tcp-flags   SYN,RST SYN --clamp-mss-to-pmtu
> 
> 
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-17 16:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13 14:35 pptp + iptables Alexey Sheshka
2002-09-13 17:00 ` pptp + iptables MTU ??? Thomas Lussnig
2002-09-15 11:11   ` Antony Stone
2002-09-15 13:57     ` Thomas Lussnig
2002-09-15 14:03       ` Antony Stone
2002-09-17 16:40       ` Alistair Tonner

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.