* IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts
@ 2009-02-25 15:10 Adam Kessel
2009-02-25 19:07 ` Ralf
0 siblings, 1 reply; 5+ messages in thread
From: Adam Kessel @ 2009-02-25 15:10 UTC (permalink / raw)
To: netfilter
I have a simple home router iptables setup. The router now runs Debian
Lenny; the client runs Ubuntu. Since the Debian upgrade, the forwarding
setup no longer works properly.
The iptables router has two NICs; one connects to the cable modem, the
other to an internal switch. Router is running Linux 2.6.26, iptables
1.4.2.
The router box has no network issues with the Internet. I can ping, surf
websites, etc..
The client box has no problems talking to the router. I can ssh to the
router, mount NFS shares, etc..
Before the Lenny upgrade, the router box was forwarding Internet traffic
from the client to the Internet without trouble.
After the Lenny upgrade, I can no longer make any connection from the
client to the Internet that transmits more than few bytes. I can ping
from the client, do DNS lookups, and even get a short error message from
an external website by telnetting from the client to port 80 on the
external website and sending an invalid requst. If I send a *valid*
request, however (e.g. GET /index.html HTTP/1.0), I get no response. The
connection just times out.
/proc/net/ip_conntrack shows all the relevant connections in CLOSE_WAIT
or TIME_WAIT status.
sysctl is properly configured:
net.ipv4.conf.all.forwarding = 1
I have ip_masquerading enabled.
I don't think this is a problem with the forwarding setup, since I am
able to ping and make an initial HTTP connection to external hosts from
the internal client. It's only when more than a few bytes are supposed to
come back that it times out.
Finally, just as an experiment, I tried reducing the MTU packet size on
the client, but it made no difference.
Nothing relevant appears in syslog or kernel logs. I tried logging
packets in invalid state; no luck.
Any suggestions on how to fix or further troubleshoot this?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts
2009-02-25 15:10 IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts Adam Kessel
@ 2009-02-25 19:07 ` Ralf
2009-02-25 21:15 ` Brian Austin - Standard Universal
0 siblings, 1 reply; 5+ messages in thread
From: Ralf @ 2009-02-25 19:07 UTC (permalink / raw)
To: netfilter
Try this script. It worked for me:
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC.FIREWALL-IPTABLES
There are also furthergoing scripts in that document.
Adam Kessel wrote:
> I have a simple home router iptables setup. The router now runs Debian
> Lenny; the client runs Ubuntu. Since the Debian upgrade, the forwarding
> setup no longer works properly.
>
> The iptables router has two NICs; one connects to the cable modem, the
> other to an internal switch. Router is running Linux 2.6.26, iptables
> 1.4.2.
>
> The router box has no network issues with the Internet. I can ping, surf
> websites, etc..
>
> The client box has no problems talking to the router. I can ssh to the
> router, mount NFS shares, etc..
>
> Before the Lenny upgrade, the router box was forwarding Internet traffic
> from the client to the Internet without trouble.
>
> After the Lenny upgrade, I can no longer make any connection from the
> client to the Internet that transmits more than few bytes. I can ping
> from the client, do DNS lookups, and even get a short error message from
> an external website by telnetting from the client to port 80 on the
> external website and sending an invalid requst. If I send a *valid*
> request, however (e.g. GET /index.html HTTP/1.0), I get no response. The
> connection just times out.
>
> /proc/net/ip_conntrack shows all the relevant connections in CLOSE_WAIT
> or TIME_WAIT status.
>
> sysctl is properly configured:
>
> net.ipv4.conf.all.forwarding = 1
>
> I have ip_masquerading enabled.
>
> I don't think this is a problem with the forwarding setup, since I am
> able to ping and make an initial HTTP connection to external hosts from
> the internal client. It's only when more than a few bytes are supposed to
> come back that it times out.
>
> Finally, just as an experiment, I tried reducing the MTU packet size on
> the client, but it made no difference.
>
> Nothing relevant appears in syslog or kernel logs. I tried logging
> packets in invalid state; no luck.
>
> Any suggestions on how to fix or further troubleshoot this?
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts
2009-02-25 19:07 ` Ralf
@ 2009-02-25 21:15 ` Brian Austin - Standard Universal
2009-02-25 21:34 ` Adam Kessel
2009-02-25 23:53 ` Adam J. Kessel
0 siblings, 2 replies; 5+ messages in thread
From: Brian Austin - Standard Universal @ 2009-02-25 21:15 UTC (permalink / raw)
To: Ralf; +Cc: netfilter
I found I have to do the
echo 1 > /proc/sys/net..ip_forward
put it in a startup script.
setting the variable doesnt help
b
Ralf wrote:
> Try this script. It worked for me:
>
> http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC.FIREWALL-IPTABLES
>
>
> There are also furthergoing scripts in that document.
>
>
>
> Adam Kessel wrote:
>> I have a simple home router iptables setup. The router now runs Debian
>> Lenny; the client runs Ubuntu. Since the Debian upgrade, the forwarding
>> setup no longer works properly.
>>
>> The iptables router has two NICs; one connects to the cable modem, the
>> other to an internal switch. Router is running Linux 2.6.26, iptables
>> 1.4.2.
>> The router box has no network issues with the Internet. I can ping, surf
>> websites, etc..
>> The client box has no problems talking to the router. I can ssh to the
>> router, mount NFS shares, etc..
>> Before the Lenny upgrade, the router box was forwarding Internet traffic
>> from the client to the Internet without trouble.
>> After the Lenny upgrade, I can no longer make any connection from the
>> client to the Internet that transmits more than few bytes. I can ping
>> from the client, do DNS lookups, and even get a short error message from
>> an external website by telnetting from the client to port 80 on the
>> external website and sending an invalid requst. If I send a *valid*
>> request, however (e.g. GET /index.html HTTP/1.0), I get no response. The
>> connection just times out.
>> /proc/net/ip_conntrack shows all the relevant connections in CLOSE_WAIT
>> or TIME_WAIT status.
>> sysctl is properly configured:
>>
>> net.ipv4.conf.all.forwarding = 1
>>
>> I have ip_masquerading enabled.
>>
>> I don't think this is a problem with the forwarding setup, since I am
>> able to ping and make an initial HTTP connection to external hosts from
>> the internal client. It's only when more than a few bytes are
>> supposed to
>> come back that it times out.
>> Finally, just as an experiment, I tried reducing the MTU packet size on
>> the client, but it made no difference.
>> Nothing relevant appears in syslog or kernel logs. I tried logging
>> packets in invalid state; no luck.
>>
>> Any suggestions on how to fix or further troubleshoot this?
>> --
>> To unsubscribe from this list: send the line "unsubscribe netfilter" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts
2009-02-25 21:15 ` Brian Austin - Standard Universal
@ 2009-02-25 21:34 ` Adam Kessel
2009-02-25 23:53 ` Adam J. Kessel
1 sibling, 0 replies; 5+ messages in thread
From: Adam Kessel @ 2009-02-25 21:34 UTC (permalink / raw)
To: Brian Austin - Standard Universal; +Cc: Ralf, netfilter
I doubt this is the problem, since I am getting some forwarding; it just
cuts off after a few packets.
Brian Austin - Standard Universal wrote, on 2/25/2009 4:15 PM:
> I found I have to do the
> echo 1 > /proc/sys/net..ip_forward
>
> put it in a startup script.
>
> setting the variable doesnt help
>
> b
>
> Ralf wrote:
>> Try this script. It worked for me:
>>
>> http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC.FIREWALL-IPTABLES
>>
>>
>> There are also furthergoing scripts in that document.
>>
>>
>>
>> Adam Kessel wrote:
>>> I have a simple home router iptables setup. The router now runs Debian
>>> Lenny; the client runs Ubuntu. Since the Debian upgrade, the forwarding
>>> setup no longer works properly.
>>>
>>> The iptables router has two NICs; one connects to the cable modem, the
>>> other to an internal switch. Router is running Linux 2.6.26, iptables
>>> 1.4.2. The router box has no network issues with the Internet. I can
>>> ping, surf
>>> websites, etc.. The client box has no problems talking to the router.
>>> I can ssh to the
>>> router, mount NFS shares, etc.. Before the Lenny upgrade, the router
>>> box was forwarding Internet traffic
>>> from the client to the Internet without trouble. After the Lenny
>>> upgrade, I can no longer make any connection from the
>>> client to the Internet that transmits more than few bytes. I can ping
>>> from the client, do DNS lookups, and even get a short error message from
>>> an external website by telnetting from the client to port 80 on the
>>> external website and sending an invalid requst. If I send a *valid*
>>> request, however (e.g. GET /index.html HTTP/1.0), I get no response. The
>>> connection just times out. /proc/net/ip_conntrack shows all the
>>> relevant connections in CLOSE_WAIT
>>> or TIME_WAIT status. sysctl is properly configured:
>>>
>>> net.ipv4.conf.all.forwarding = 1
>>>
>>> I have ip_masquerading enabled.
>>>
>>> I don't think this is a problem with the forwarding setup, since I am
>>> able to ping and make an initial HTTP connection to external hosts from
>>> the internal client. It's only when more than a few bytes are
>>> supposed to
>>> come back that it times out. Finally, just as an experiment, I tried
>>> reducing the MTU packet size on
>>> the client, but it made no difference. Nothing relevant appears in
>>> syslog or kernel logs. I tried logging packets in invalid state; no
>>> luck.
>>>
>>> Any suggestions on how to fix or further troubleshoot this?
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe netfilter" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe netfilter" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts
2009-02-25 21:15 ` Brian Austin - Standard Universal
2009-02-25 21:34 ` Adam Kessel
@ 2009-02-25 23:53 ` Adam J. Kessel
1 sibling, 0 replies; 5+ messages in thread
From: Adam J. Kessel @ 2009-02-25 23:53 UTC (permalink / raw)
To: Brian Austin - Standard Universal; +Cc: Ralf, netfilter
>> Adam Kessel wrote:
>>> I have a simple home router iptables setup. The router now runs Debian
>>> Lenny; the client runs Ubuntu. Since the Debian upgrade, the forwarding
>>> setup no longer works properly.
>>> The iptables router has two NICs; one connects to the cable modem, the
>>> other to an internal switch. Router is running Linux 2.6.26, iptables
>>> 1.4.2. The router box has no network issues with the Internet. I can
>>> ping, surf
>>> websites, etc.. The client box has no problems talking to the router.
Problem solved! For some reason, the MTU on my outward-facing NIC had
shrunk after the Debian Lenny upgrade. By increasing the MTU back to
1500 on that interface, everything works fine.
So it's not iptables fault.
I have no idea why the MTU would have been set lower after the upgrade,
but that's some other package's problem.
Adam
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-25 23:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25 15:10 IP forwarding on iptables router box no longer working after Debian upgrade; can ping but not get http request from outside hosts Adam Kessel
2009-02-25 19:07 ` Ralf
2009-02-25 21:15 ` Brian Austin - Standard Universal
2009-02-25 21:34 ` Adam Kessel
2009-02-25 23:53 ` Adam J. Kessel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox