LinuxQuestions.org
Register a domain and help support LQ
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 03-08-2004, 03:28 PM   #1
sitmex
Member
 
Registered: Mar 2004
Location: Guadalajara, Mexico
Distribution: Fedora Core 3
Posts: 30

Rep: Reputation: 15
Internet Sharing with iptables? can it be done?


Good day,

PROBLEM: I want to share internet conection in a small network, Server on Linux; clients on Windows XP and MAC.
I hope someone can help me!!!

First of all let me state that I'm a newbie in this Linux World.

I've got a Linux Box wit two Ethernet adapters:
eth0 Connected to a small lan (192.168.0.1) and
eth1 Connected to internet using a cablemodem
Both are working fine...

Client PC: Windows XP Pro with a static IP address (192.168.0.2)
Client MAC Mac OS 9.2x with a static IP address (192.168.0.3)


As for some reading done, i learned that I may need to use IPCHAINS to enable this feature, then I learn that have IPTABLES Runnig. then I learned that IPTABLES and IPCHAINS do not like each other.

Duiring this process I Tried to insert the module ipchains using modprobe and insmode and got errors that say that servive is busy.

My system is running IPTABLES by default. since I set the server with the frewall options.

Questions:
Can I still share this internet trough my network?
HOW Can I do it using IPTABLES?

Please HELP!!!
Need more info?
Let me know...
 
Old 03-08-2004, 03:36 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
yeah, iptables is perfect for this... not only for sharing the connection, but for providing security and stuff... and iptables is more modern than ipchains...

you'll need to read-up on iptables (at least the basics)...

http://www.linuxguruz.com/iptables/


then you can make your own iptables scripts, or you can use a generator or a front-end or a gui or whatever you want...

http://www.shorewall.net/

http://easyfwgen.morizot.net/gen/

http://firestarter.sourceforge.net/
 
Old 03-08-2004, 03:59 PM   #3
sitmex
Member
 
Registered: Mar 2004
Location: Guadalajara, Mexico
Distribution: Fedora Core 3
Posts: 30

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks for the heads up,
I'll read more

Quote:
Originally posted by win32sux
yeah, iptables is perfect for this... not only for sharing the connection, but for providing security and stuff... and iptables is more modern than ipchains...

you'll need to read-up on iptables (at least the basics)...

http://www.linuxguruz.com/iptables/


then you can make your own iptables scripts, or you can use a generator or a front-end or a gui or whatever you want...

http://www.shorewall.net/

http://easyfwgen.morizot.net/gen/

http://firestarter.sourceforge.net/
 
Old 03-09-2004, 04:25 PM   #4
ljlabrie
LQ Newbie
 
Registered: Mar 2004
Location: Augsburg, Germany
Distribution: Redhat 9.0
Posts: 8

Rep: Reputation: 0
I use RH 9.0 also, and you can modify your iptables by changing the security level in your Preferences popup menu. However, you must be logged in as root.
 
  


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
Problems with iptables not allowing internet sharing. ryedunn Linux - Networking 19 02-10-2005 07:23 PM
Iptables Setup for Internet Sharing, Servers & VPN bLaDe Linux - Security 3 06-09-2004 06:09 AM
Sharing internet connection with iptables chatmanpk Linux - Networking 2 09-27-2003 05:30 PM
iptables fwding for internet sharing help seth Linux - Networking 3 08-20-2003 11:29 AM
Internet connection sharing with iptables specialmunky Linux - Newbie 10 10-29-2002 01:10 PM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration