Re: [gentoo-user] Need help with routing

2007-09-12 Thread Florian Philipp
Hans-Werner Hilse schrieb: Hi, On Tue, 11 Sep 2007 21:38:26 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Now the kernel can handle connection state matching :) I can apply your rules with one exception: iptables -A POSTROUTING -o ppp0 -j MASQUERADE The same error message as before.

Re: [gentoo-user] Need help with routing [OT: Issues with an article on the wiki]

2007-09-12 Thread Hans-Werner Hilse
Hi, On Wed, 12 Sep 2007 18:35:41 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Thank you for your patience, it's finally working! OK, that's good news :-) If you don't edit the wiki, I'll do it (sooner or later). Just tell me if you don't want to see your name when I give you credit for

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Florian Philipp
Hans-Werner Hilse schrieb: Hi, On Mon, 10 Sep 2007 20:59:03 +0200 Florian Philipp [EMAIL PROTECTED] wrote: I'll attach relevant ifconfig, route and iptables -L output. Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Dan Farrell
On Mon, 10 Sep 2007 22:48:20 +0200 Hans-Werner Hilse [EMAIL PROTECTED] wrote: is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting without it and then setting

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Hans-Werner Hilse
Hi, On Tue, 11 Sep 2007 17:30:51 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1 anywhere ACCEPT all --

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Florian Philipp
Dan Farrell schrieb: On Mon, 10 Sep 2007 22:48:20 +0200 Hans-Werner Hilse [EMAIL PROTECTED] wrote: is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Florian Philipp
Hans-Werner Hilse schrieb: Hi, On Tue, 11 Sep 2007 17:30:51 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1 anywhere

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Hans-Werner Hilse
Hi, On Tue, 11 Sep 2007 18:50:52 +0200 Florian Philipp [EMAIL PROTECTED] wrote: My suggestion for a proper setup would be $ iptables -F FORWARD $ iptables -P FORWARD DROP $ iptables -A FORWARD -i eth0 -o ppp0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT $ iptables -A FORWARD

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Florian Philipp
Hans-Werner Hilse schrieb: Hi, On Tue, 11 Sep 2007 18:50:52 +0200 Florian Philipp [EMAIL PROTECTED] wrote: My suggestion for a proper setup would be $ iptables -F FORWARD $ iptables -P FORWARD DROP $ iptables -A FORWARD -i eth0 -o ppp0 -m state --state NEW,ESTABLISHED,RELATED -j

Re: [gentoo-user] Need help with routing

2007-09-11 Thread Hans-Werner Hilse
Hi, On Tue, 11 Sep 2007 21:38:26 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Now the kernel can handle connection state matching :) I can apply your rules with one exception: iptables -A POSTROUTING -o ppp0 -j MASQUERADE The same error message as before. But a different cause: My

Re: [gentoo-user] Need help with routing

2007-09-10 Thread Florian Philipp
Dan Farrell schrieb: On Sun, 02 Sep 2007 05:12:11 -0500 Dale [EMAIL PROTECTED] wrote: Florian Philipp wrote: Hi list! I'm trying to set up my laptop as the router for my PC. ... My problem: As soon as set up eth0 with ifconfig 192.168.1.1 netmask 255.255.255.0 eth0 ppp0 is no longer

Re: [gentoo-user] Need help with routing

2007-09-10 Thread Florian Philipp
Florian Philipp schrieb: Dan Farrell schrieb: On Sun, 02 Sep 2007 05:12:11 -0500 Dale [EMAIL PROTECTED] wrote: Florian Philipp wrote: Hi list! I'm trying to set up my laptop as the router for my PC. ... My problem: As soon as set up eth0 with ifconfig 192.168.1.1 netmask 255.255.255.0

Re: [gentoo-user] Need help with routing

2007-09-10 Thread Dan Farrell
On Mon, 10 Sep 2007 20:59:03 +0200 Florian Philipp [EMAIL PROTECTED] wrote: default HOMER-KUBUNTU64 0.0.0.0 UG0 0 0 eth0 What's this? I do not know if this should be here. -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] Need help with routing

2007-09-10 Thread Hans-Werner Hilse
Hi, On Mon, 10 Sep 2007 20:59:03 +0200 Florian Philipp [EMAIL PROTECTED] wrote: I'll attach relevant ifconfig, route and iptables -L output. Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1

[gentoo-user] Need help with routing

2007-09-02 Thread Florian Philipp
Hi list! I'm trying to set up my laptop as the router for my PC. In the end it should look like this: ppp0 - laptop - eth0 --- eth0 - PC My problem: As soon as set up eth0 with ifconfig 192.168.1.1 netmask 255.255.255.0 eth0 ppp0 is no longer used. I tried to follow this howto:

Re: [gentoo-user] Need help with routing

2007-09-02 Thread Dale
Florian Philipp wrote: Hi list! I'm trying to set up my laptop as the router for my PC. In the end it should look like this: ppp0 - laptop - eth0 --- eth0 - PC My problem: As soon as set up eth0 with ifconfig 192.168.1.1 netmask 255.255.255.0 eth0 ppp0 is no longer used. I tried to