LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-13-2001, 12:21 PM   #1
axon2
LQ Newbie
 
Registered: Jun 2001
Posts: 6

Rep: Reputation: 0
Exclamation


I recently setup a linux machine as a server on my network. it has 2 network cards one is for the dsl modem the other is for my home network. if i enable both cards i lose access to the internet on all machines but if i enble just the card on my dsl modem it comes back to the servoer comp only. i would like so help on how to set it up to sharing the connection all over my network
 
Old 06-13-2001, 03:00 PM   #2
kris.kj.jacobs
Member
 
Registered: Jun 2001
Location: Belgium
Distribution: Mandrake
Posts: 57

Rep: Reputation: 15
You have to turn on IP-forwarding.

I've set up on a RedHat Linux forwarding firewall. The steps to archieve the forwarding are the following:

1/ Make a kernel that supports IP-forwarding.
2/ echo "1" > /proc/sys/net/ipv4/ip_forward.
3/ Use the package ipchains and execute the following commands:

ipchains -P forward DENY
ipchains -A forward -s 192.168.2.0/24 -j MASQ

192.168.2. is your internal network (netmask 255.255.255.0). Keep in mind that if you choose another netmask, you also have to change the 24 to something else.

You should also check some HOWTO's on firewalling. They give a very good explanation on this.
 
  


Reply



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
Connection Sharing brokenflea Slackware 2 12-05-2003 11:06 AM
connection sharing splenomegaly Linux - Networking 4 07-17-2003 01:12 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM
Sharing a connection carrja99 Linux - Networking 3 04-23-2003 08:08 PM
Connection sharing buckeyejerry Linux - Networking 1 01-13-2003 05:50 AM

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

All times are GMT -5. The time now is 08:38 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
Open Source Consulting | Domain Registration