Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi, I have two NIC in a linux-box rh7.3 with the sequent configuration:
#########################################
ip link show
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:50:fc:65:20:ef brd ff:ff:ff:ff:ff:ff
3: eth1: mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:1e:08:07:b1 brd ff:ff:ff:ff:ff:ff
#########################################
ip address show
1: lo: 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 brd 127.255.255.255 scope host lo
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:50:fc:65:20:ef brd ff:ff:ff:ff:ff:ff
inet 192.168.50.48/24 brd 192.168.50.255 scope global eth0
3: eth1: mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:1e:08:07:b1 brd ff:ff:ff:ff:ff:ff
inet 192.168.60.48/24 brd 192.168.60.255 scope global eth1
##########################################
cat /proc/sys/net/ipv4/ip_forward
1
##########################################I have stop the iptables and ipchains services and i can't route traffic from a NIC to the other one.
Then I have enabled ipchains only, iptables only, ipchains and iptables at the same time but nothing works!!
All the times I have restarted the network service.
Can anyone help me?

first,
Attention: Using both, ipchains and iptables might confuse the kernel: Use either iptables OR ipchains, but not the two together.
Second,
you will have to load the modules for masquerading/nat. There is no good in directly routing internal network adresses (p-ex. 192.168.x.x) to the internet. They aren't routed throu' the internet.
Activating masquerading/NAT for the 2.2.x Kernel looks like this:
ipchains –M –S 7600 30 10
/sbin/modprobe ip_masq_ftp.oA rule for the forwarding chain:
ipchains –A forward –I $EXTERN –s 192.168.0.0/24 –j MASQNote that these commands are Kernel 2.2.X & ipchains!
After having set up NAT you won't have problems getting Internet-Requests from internel Network to external network and vice-versa.
Questions?
goto
http://www.distantvoices.org/php/usermail.php

Uh, have overread something:
You want to route inside:
Have you added a routing table to the kernel:
There should be something like this in the
route.conf:192.168.50.0 192.168.50.1 255.255.255.0 eth0
192.168.60.0 192.168.60.1 255.255.255.0 eth1this tells the kernel how to reach each of the two networks.
Sorry for inconvenience of having to read needless info!
thomas

![]() |
Install Linux on Dual G4
|
Installing XMMS skins
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |