LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2003, 11:12 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,673

Rep: Reputation: 55
Broadband sharing - shorewall config


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
 
Old 11-06-2003, 06:32 AM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Did you enable ip forwarding on PC1? Try this from the command prompt:

/bin/echo 1 > /proc/sys/net/ipv4/ip_forward

If that works, then insert that line in one of your startup scripts on PC1, such as rc.local
 
Old 11-06-2003, 06:41 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,673

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by spurious
Did you enable ip forwarding on PC1? Try this from the command prompt:

/bin/echo 1 > /proc/sys/net/ipv4/ip_forward

If that works, then insert that line in one of your startup scripts on PC1, such as rc.local
Hi,

Problem SOLVED
==============

Thanks for your advice.

I am running Shorewall and have stopped iptables. Solution as follow;

On PC1
edited /etc/shorewall/masq
#INTERFACE SUBNET ADDRESS
ppp0 eth1

(changing "eth0 to ppp0")

Now PC2 can connect to Internet and ping PC1

Thanks

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 10:33 PM
sharing broadband kola Linux - Networking 5 09-11-2004 09:24 PM
Broadband sharing satimis Linux - Hardware 11 03-05-2004 07:01 PM
Shorewall Internet Sharing, HELP! timmywo Linux - Networking 2 12-26-2003 01:18 PM
NTL Broadband sharing vincentmay Linux - Networking 2 03-22-2003 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration