Computing.Net > Forums > Linux > forwarding packets linux rh 7.3 pro

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

forwarding packets linux rh 7.3 pro

Reply to Message Icon

Name: Marcello
Date: September 13, 2002 at 08:32:52 Pacific
OS: rh 7.3
CPU/Ram: 1600+ Mhz
Comment:

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?




Sponsored Link
Ads by Google

Response Number 1
Name: thomas
Date: September 13, 2002 at 11:19:15 Pacific
Reply:

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.o

A rule for the forwarding chain:
ipchains –A forward –I $EXTERN –s 192.168.0.0/24 –j MASQ

Note 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



0

Response Number 2
Name: thomas
Date: September 13, 2002 at 11:26:09 Pacific
Reply:

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 eth1

this tells the kernel how to reach each of the two networks.

Sorry for inconvenience of having to read needless info!

thomas


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Install Linux on Dual G4 Installing XMMS skins



Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: forwarding packets linux rh 7.3 pro

Cannot install RH 7.3 www.computing.net/answers/linux/cannot-install-rh-73/11474.html

rh 7.3 hp e-pc 42 installation prob www.computing.net/answers/linux/rh-73-hp-epc-42-installation-prob/13042.html

IMP/Horde on RH 7.3? www.computing.net/answers/linux/imphorde-on-rh-73/11017.html