Skip to contentSkip to conversation

Masquerading problems (fix)

DISCUSSION David Gaston Rodriguez 3 participants 4 messages Jul 3, 2002

lore
Share & tools
lore
#0 lore raw

Sorry! i wrote bad. here is the correction:
Hi!, i am new in the list, i am from argentina, this is mi problem:
I have a small LAN with a server doing masquerading, I used the kernel 2.2.20 and did not have any problem, now i decided to use the kernel 2.4.18, i set iptables to make the masquerading, but now there are web pages which i can NOT enter from workstations, like for example www.mixmail.com or www.yahoo.com, and from the server i can enter to this pages. I using 2 interfaces, eth0: external, eth1: internal, the external interface is connect to ADSL Modem (PPPoE).
Some idea on as could be mi problem?
Thanks!!

#1 lore raw
Quoted 11 lines · David Gaston Rodriguez

Sorry! i wrote bad. here is the correction:
Hi!, i am new in the list, i am from argentina, this is mi problem:
I have a small LAN with a server doing masquerading, I used the kernel 2.2.20 and did not have any problem, now i decided to use the kernel 2.4.18, i set iptables to make the masquerading, but now there are web pages which i can NOT enter from workstations, like for example www.mixmail.com or www.yahoo.com, and from the server i can enter to this pages. I using 2 interfaces, eth0: external, eth1: internal, the external interface is connect to ADSL Modem (PPPoE).
Some idea on as could be mi problem?
Thanks!!

I have two suggestions for this problem:

1. Do you have a rule allowing ESTABLISHED and RELATED packets from the remote server back to the workstations (possibly some ICMP stuff such as fragmentation) ?

2. Check the MTU on your PPPoE and eth1 - I've heard about people using PPPoE having a problem with different MTUs on either side of the firewall - I think the solution was to clamp the larger one down to be the same value as the
smaller one ? Maybe someone else who who uses PPPoE or knows more about
this problem can be more specific ?

Hope this helps,

Antony.

#2 lore raw
In reply to David Gaston Rodriguez

This is how i have it

### Allow masquerading for internal boxes ### iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward

### Make sure mtu is never changed
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

Had the same problem as you earlier, that fixed the prob.

/Jörgen

--- David Gaston Rodriguez <[email protected]>

Quoted 8 lines · wrote:

Sorry! i wrote bad. here is the correction:
Hi!, i am new in the list, i am from argentina, this is mi problem:
I have a small LAN with a server doing masquerading, I used the kernel 2.2.20 and
did not have any problem, now i decided to use the kernel 2.4.18, i set iptables
to make the masquerading, but now there are web

Quoted 10 lines

pages which i can NOT enter from workstations, like for example www.mixmail.com or www.yahoo.com, and from the server
i can enter to this pages. I using 2 interfaces,
eth0: external, eth1: internal, the
external interface is connect to ADSL Modem (PPPoE). Some idea on as could be mi problem? Thanks!!

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

#3 lore raw
In reply to David Gaston Rodriguez

Thanks to all!! I already could solve the problem using the line:
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

Signature · 10 lines
---------------------------------
DAVID GASTÓN RODRIGUEZ
Linux Tucumán
Nick: [[D4V|D]]
---------------------------------
Email:  [email protected]
        [email protected]
ICQ: 81492566
MSN Messenger: david_80gr
---------------------------------