Help - Search - Members - Calendar
Full Version: Rotuing Problem
Linuxhelp > Support > Technical Support
maasan
It was over 10years ago I was playing around with linux and I managed to forget most of it . sad.gif
Now to the issue.
I am trying to do an ussual routing table and cant get the inside computers to connect to the internet . I jknow it possible I done it before but dont remeber how it should look. Now it looks like this:

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
2: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:04:6a:06:70 brd ff:ff:ff:ff:ff:ff
inet 212.112.45.246/30 brd 212.112.45.247 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:a0:24:bb:9a:b4 brd ff:ff:ff:ff:ff:ff
inet 130.230.238.1/24 brd 130.230.238.255 scope global eth1
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
212.112.45.244 0.0.0.0 255.255.255.252 U 0 0 0 eth0
130.230.238.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 212.112.45.245 0.0.0.0 UG 0 0 0 eth0





The big question is what have I made wrong????
DS2K3
I have removed your email address and ICQ number. Putting them on a public forum is jsut asking to get spammed. Not only that, but any answers posted here can help others int hefuture, if someone emails it to you, that answer wont be any help to anyone else.

D
michaelk
What linux distribution are you running?

Is 212.112.45.245 the IP address assigned by your ISP?
Is 130.230.238.1 the server IP address of your local network?
Are you local computers configured using a static or dynamic IP address?

You need to configure ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward

and use iptables to configure firewalling and NAT. There are lots of howtos on the web that you can find by googling. Here is one:
http://www.yolinux.com/TUTORIALS/LinuxTuto...orkGateway.html

If your local computers are assigned a static IP address you will need to add the DNS information manually.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.