Click to See Complete Forum and Search --> : Broadband sharing -Shorewall config


satimis
11-06-2003, 12:14 AM
Hi all folks,

After having Shorewall running on PC1, I continued testing tbroadband sharing/masq without success as follows;

PC1
RH9
===
eth0 connected to broadband
eth1 connected to eth0 of PC2 via a crossover cable

eth1 config;
Under 'General' tag
check Activate device when computer starts
check Statically set IP addresses
Address 192.168.0.1
Subnet 255.255.255.0
Default Gateway Address blank/no entry

Under 'Route' tag
No entry

PC2
RH8
====
eth0 connected to eth1 of PC1 via a crossover cable

eth0 config;
Under 'General' tag
check Activate device when computer starts
check Statically set IP addresses
Address 192.168.0.2
Subnet 255.255.255.0
Default Gateway Address 192.168.0.1

Under 'Route' tag
No entry

/etc/shorewall/masq
#INTERFACE SUBNET ADDRESS
eth0 eth1


TEST on PC2
==========
PC2 Konsole Window
# ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) from 192.168.0.2 : 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
.........

# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]

# service iptables stop
# service iptables start
(all no printout)

# /etc/init.d/iptables status
# /etc/init.d/iptables stop
# /etc/init.d/iptables start
(all no printout)

# rpm -q iptables
iptables-1.2.6a-2
# rpm -q ipchains
ipchains-1.3.10-16

# redhat-config-services
starting "Service Configuration" window to disable iptables and ipchains

# ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) from 192.168.0.2 : 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
.........

(Remark: led of eth1-PC1 glowed led of eth0-PC2 did not glow)

Could not proceed test further. Kindly advice

Thanks in advance.

B.R.
satimis