Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IP Masq on Slackware 4.0



For a quick solution, I used the following ipchains commands. I will have to

start tweaking them now. The commands are,

       # ipchains -P forward DENY
       # ipchains -A forward -i ppp0 -j MASQ
       # echo 1 > /proc/sys/net/ipv4/ip_forward

Hope this helps.

Subba Rao
subb3 at ibm.net

Phil wrote:

> Boy, what timing. I am having the exact same problem with RH6. I set up
> a small LAN (with Glen Burkhardt's help) over the weekend. All of the PC
> clients running Windows 9* can connect to the RH6 server to accomplish
> file sharing and print sharing services. The linux box I have is
> assigned the IP 192.168.1.100. All of the windows clients have
> 192.168.1.100 in as their gateway for their TCP/IP settings, and the DNS
> settings are set to use our ISP's nameservers.. I connect the linux box
> via PPP to our local ISP. After the connection is established, if I run
> ifconfig, I see eth0, lo, and ppp0, all seemingly up and running fine.
>
> The problem comes trying to use ipchains to allow packet forwarding. I
> can't get it up and running. Is there anyone who has IPCHAINS actually
> doing any work? I' beat my head against the wall all day yesterday
> trying to get it to work. I have a feeling I;m missing something simple.
>
> One the ppp connection is up I use:
>
> ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0
> and
> ipchains -A input -j ACCEPT -i ppp0 -s 192.168.1.0/24 -d 0.0.0.0/0
>
> Any ideas????? I'm getting to the end of my rope....
>
> TIA,
> Phil Buckley
>
> Subba Rao wrote:
>
> > I have installed Slackware 4.0 and am able to connect to the
> > Internet. But the connectivity is only for the Linux host. The other
> > systems on the LAN cannot connect to the Internet.
> >
> > I have recompiled the kernal with IP Masq reenabled. Yet, the other
> > systems cannot connect to the Internet. They can connect to the linux
> > system.
> >
> > The routing table on the linux shows that the ppp0 address as the
> > default gateway. The "localnet" in the routing table shows eth0,
> > which I am assuming is the gateway to the LAN.
> >
> > Is there any place where we have to mention that the ethernet card is
> > the masquerading device?
> >
> > Thanks for any help.
> >
> > Subba Rao
> > subb3 at ibm.net
> >
> > -
> > Subcription/unsubscription/info requests: send e-mail with
> > "subscribe", "unsubscribe", or "info" on the first line of the
> > message body to discuss-request at blu.org (Subject line is ignored).

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org