Problems with pppoe and nat

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

 



I am having problems setting up NAT for my home LAN.

I get the following:

frigorifero root # iptables -v -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
MASQUERADE all opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0
iptables: Invalid argument


ifconfig gives me:

eth0      Link encap:Ethernet  HWaddr 00:E0:29:09:C0:03
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3030 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2349 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:225218 (219.9 Kb)  TX bytes:461036 (450.2 Kb)
          Interrupt:10 Base address:0xe400

eth1      Link encap:Ethernet  HWaddr 00:C0:DF:0E:6D:87
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:11152 (10.8 Kb)  TX bytes:11597 (11.3 Kb)
          Interrupt:12 Base address:0x6000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:217.234.xxx.xxx P-t-P:217.5.xxx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:934 (934.0 b) TX bytes:664 (664.0 b)


and iptables says:

frigorifero root # iptables -h
iptables v1.2.7a

My PPP link is a DSL line, I use rp-pppoe and I up it using adsl-start.

Can anyone tell me what am I doing wrong?
Thanks,
V.-


-- http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.


[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