Re: Can't share ppp internet connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/8/21 Jan Engelhardt <jengelh@xxxxxxxxxx>:
>
> On Sunday 2011-08-21 10:51, Vinicius Massuchetto wrote:
>>2011/8/20 Vinicius Massuchetto <viniciusmassuchetto@xxxxxxxxx>:
>>> I had this configuration before, and it used to work well, but now I
>>> got a new server and I can't setup it to share the internet connection
>>> from ppp0.
>>>
>>> The client connects directly on eth0 through a dhcp server, and it can
>>> get an IP just fine. The problem seems only to appear when I set this
>>> rule:
>>> `iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE`
>>>
>>> Just after that, the client won't be able to receive an IP from the
>>> server anymore. Here's the configuration files:
>>
>>Aug 21 04:52:13 onix dhcpd: DHCPREQUEST for 192.168.0.2 from
>>00:16:36:96:2b:15 (amendoa) via eth0
>>Aug 21 04:52:13 onix dhcpd: DHCPACK on 192.168.0.2 to
>>00:16:36:96:2b:15 (amendoa) via eth0
>
> Random thoughts
> - rp_filter interfering

Running `sysctl -w net.ipv4.conf.eth0.rp_filter=0` seems not to change anything.

> - having 192.168.0.0/24 on ppp0, colliding with eth0

Not sure if this is enough, but the ppp0 is not on the 192.168.*.* range.
$ ifconfig ppp0
          Link encap:Protocolo Ponto-a-Ponto
          inet end.: 187.53.115.31  P-a-P:10.64.64.64  Masc:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Métrica:1
          RX packets:62495 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39460 errors:0 dropped:0 overruns:0 carrier:0
          colisões:0 txqueuelen:3
          RX bytes:86031897 (82.0 MiB)  TX bytes:3378602 (3.2 MiB)

Thanks for helping.
-- 
Vinicius Massuchetto
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux