This is a discussion on setting up router within the Linux Networking forums, part of the Linux Forums category; Hello all! I want to setup a router on a Fedora Linux machine. I have succesfully installed the two ethernet ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all!
I want to setup a router on a Fedora Linux machine. I have succesfully installed the two ethernet cards. My external IP address is static. I followed the shorewall quickstart guide instructions but my router still does not route :-( and I dont know what is wrong or how I should go further. The configuration that I have thought of is the following: eth0 IP 181.196.188.248 Subnet Mask 255.255.255.0 GW 181.196.188.225 eth1 IP 10.10.10.254 Subnet Mask 255.255.255.0 GW 181.196.188.248 network computer WADDE WADDE IP 10.10.10.2 Subnet Mask 255.255.255.0 GW 10.10.10.254 I noticed that I do have access to the Internet as long as shorewall is not started. Once I start it, it wont work. If I issue shorewall stop, the external connection works again. Here are a few outputs that could give some clues to an experienced eye: /sbin/ip link list 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:50:8b:34:64:54 brd ff:ff:ff:ff:ff:ff 6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:50:fc:b4:69:c7 brd ff:ff:ff:ff:ff:ff # /sbin/ip addr show 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:50:8b:34:64:54 brd ff:ff:ff:ff:ff:ff inet 181.196.188.248/24 brd 181.196.188.255 scope global eth0 6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:50:fc:b4:69:c7 brd ff:ff:ff:ff:ff:ff inet 10.10.10.254/24 brd 10.255.255.255 scope global eth1 #/sbin/ip route show 181.196.188.0/24 dev eth0 scope link 10.10.10.0/24 dev eth1 proto kernel scope link src 10.10.10.254 169.254.0.0/16 dev eth0 scope link 127.0.0.0/8 dev lo scope link default via 181.196.188.225 dev eth0 Any help would be appreciated, Bogdan |
|
|||
|
"ruud" <ruud@localhost.invalid> wrote in message news:bvobr0$joc$1@box.nl-netwerken.com... > Radu Bogdan Mare wrote: > > > Hello all! > > > > I want to setup a router on a Fedora Linux machine. I have succesfully > > installed the two ethernet cards. My external IP address is static. I > > followed the shorewall quickstart guide instructions but my router still > > does not route :-( and I dont know what is wrong or how I should go > > further. > > <snip> > I think you forgot this: > > echo -n 1 > /proc/sys/net/ipv4/ip_forward > echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp I typed these two commands but no output was produced by either of them. |
|
|||
|
On Tue, 03 Feb 2004 17:06:21 +0200, Radu Bogdan Mare wrote:
> > "ruud" <ruud@localhost.invalid> wrote in message > news:bvobr0$joc$1@box.nl-netwerken.com... >> Radu Bogdan Mare wrote: >> >> > Hello all! >> > >> > I want to setup a router on a Fedora Linux machine. I have succesfully >> > installed the two ethernet cards. My external IP address is static. I >> > followed the shorewall quickstart guide instructions but my router still >> > does not route :-( and I dont know what is wrong or how I should go >> > further. >> >> <snip> >> I think you forgot this: >> >> echo -n 1 > /proc/sys/net/ipv4/ip_forward >> echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp > > I typed these two commands but no output was produced by either of them. And nor should it: the '>' redirects the output produced by 'echo' into the pseudo-files. See: man bash B. -- Windows: because everyone needs a good laugh. |
|
|||
|
"Brian" <nospam@my-local.net> wrote in message news:bvpe63$en0$1$8300dec7@news.demon.co.uk... > On Tue, 03 Feb 2004 17:06:21 +0200, Radu Bogdan Mare wrote: > > > > > "ruud" <ruud@localhost.invalid> wrote in message > > news:bvobr0$joc$1@box.nl-netwerken.com... > >> Radu Bogdan Mare wrote: > >> > >> > Hello all! > >> > > >> > I want to setup a router on a Fedora Linux machine. I have succesfully > >> > installed the two ethernet cards. My external IP address is static. I > >> > followed the shorewall quickstart guide instructions but my router still > >> > does not route :-( and I dont know what is wrong or how I should go > >> > further. > >> > >> <snip> > >> I think you forgot this: > >> > >> echo -n 1 > /proc/sys/net/ipv4/ip_forward > >> echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp > > > > I typed these two commands but no output was produced by either of them. > > And nor should it: the '>' redirects the output produced by 'echo' into > the pseudo-files. > > See: man bash Alright, the content of both files is 1. |