msskov
May 19th, 2011, 10:54 AM
Hi dudes
I'm trying setting up a router and firewall (Shorewall).
I'm connecting to my ISP with a cdma modem (ppp0)
And connecting a pc to the eth0
To simplify my proplems I turned off the firewall so it should now act as a simple dialup router.
It connects automaticly to my ISP when starting the server.
From the linuxbox I can ping the internet (212.242.40.3) and my pc on 10.0.0.10
But I'm not able to ping from the pc to the internet ?!?
I guess it's a problem with my default gateway, but I'm not sure.
The linuxbox is running Ubuntu 11.04 Server
Checking ip_forwarding is on:
sudo cat /proc/sys/net/ipv4/ip_forward
It says 1 (so it is forwarding)
/etc/networking/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:01:c0:06:b9:d6
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::201:c0ff:fe06:b9d6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37655 errors:0 dropped:0 overruns:0 frame:0
TX packets:23376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3037402 (3.0 MB) TX bytes:2504796 (2.5 MB)
Interrupt:40 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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:178.72.19.61 P-t-P:178.72.16.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1853 errors:1 dropped:0 overruns:0 frame:0
TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:139057 (139.0 KB) TX bytes:173852 (173.8 KB)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ip-64-16-72-178 * 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
My pitty knowlegde tell me that the ppp0 is not set as default gateway ?
I'm trying setting up a router and firewall (Shorewall).
I'm connecting to my ISP with a cdma modem (ppp0)
And connecting a pc to the eth0
To simplify my proplems I turned off the firewall so it should now act as a simple dialup router.
It connects automaticly to my ISP when starting the server.
From the linuxbox I can ping the internet (212.242.40.3) and my pc on 10.0.0.10
But I'm not able to ping from the pc to the internet ?!?
I guess it's a problem with my default gateway, but I'm not sure.
The linuxbox is running Ubuntu 11.04 Server
Checking ip_forwarding is on:
sudo cat /proc/sys/net/ipv4/ip_forward
It says 1 (so it is forwarding)
/etc/networking/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:01:c0:06:b9:d6
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::201:c0ff:fe06:b9d6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37655 errors:0 dropped:0 overruns:0 frame:0
TX packets:23376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3037402 (3.0 MB) TX bytes:2504796 (2.5 MB)
Interrupt:40 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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:178.72.19.61 P-t-P:178.72.16.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1853 errors:1 dropped:0 overruns:0 frame:0
TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:139057 (139.0 KB) TX bytes:173852 (173.8 KB)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ip-64-16-72-178 * 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
My pitty knowlegde tell me that the ppp0 is not set as default gateway ?