Re: WAN connection through a Linux machine

2010-04-20 Thread Etzion Bar-Noy
Oops - and now with reply-all... Hi. You should run both these commands (I will not disclose how you make it apply after-reboot for now) 1. echo 1 /proc/sys/net/ipv4/ip_forward 2. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE Don't forget to set correct DNS on your host B Ez On Tue,

Re: WAN connection through a Linux machine

2010-04-20 Thread Shachar Shemesh
Etzion Bar-Noy wrote: Oops - and now with reply-all... Hi. You should run both these commands (I will not disclose how you make it apply after-reboot for now) 1. echo 1 /proc/sys/net/ipv4/ip_forward 2. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE Don't forget to set correct DNS on

Re: WAN connection through a Linux machine

2010-04-20 Thread Dan Shimshoni
Hi, Well, this did not work at the first trial. Then, I added 192.168.0.10 as a default gateway on 192.168.0.10 : route add default gw 192.168.0.10 And it worked Thanks! DS On Tue, Apr 20, 2010 at 9:35 AM, Etzion Bar-Noy eza...@tournament.org.il wrote: Oops - and now with reply-all... Hi.

Re: WAN connection through a Linux machine

2010-04-20 Thread Dan Shimshoni
shachar, I googled for MSS Squashing. Got 0 results! What is this MSS Squashing? and how is it related to this issue? rgs, DS On Tue, Apr 20, 2010 at 10:44 AM, Shachar Shemesh shac...@shemesh.biz wrote: Etzion Bar-Noy wrote: Oops - and now with reply-all... Hi. You should run both these

Re: WAN connection through a Linux machine

2010-04-20 Thread Shachar Shemesh
Dan Shimshoni wrote: shachar, I googled for MSS Squashing. Got 0 results! What is this MSS Squashing? and how is it related to this issue? rgs, DS The term used in the iptables man page is clamp-mss-to-pmtu The ethernet maximal transfer unit (MTU) is 1500 bytes (more or less, but in

Re: WAN connection through a Linux machine

2010-04-20 Thread Dan Shimshoni
ok, now this is more clear. But is this problem specific to this scenario? I mean, when I use a single machine to connect directly to the internet via bezeq ADSL , without running any iptables rules at all, using PPPOE , I should have the same problem, don't I ? Is there a solution in this case

Re: WAN connection through a Linux machine

2010-04-20 Thread Shachar Shemesh
Dan Shimshoni wrote: ok, now this is more clear. But is this problem specific to this scenario? I mean, when I use a single machine to connect directly to the internet via bezeq ADSL , without running any iptables rules at all, using PPPOE , I should have the same problem, don't I ? No. The

WAN connection through a Linux machine

2010-04-19 Thread Dan Shimshoni
Hello, First, I don't know much about iptables. Second, I have a Linux machine (A) with two nics, which is connected to the Internet via Bezeq ADSL router. This machines runs a pppoe connection to the intenet, so the connection is done via ppp0. On eth1 I have an inner IP address which I set