LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-18-2002, 02:17 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
Internet Connection Sharing


I have:

My computer hooked up to the gateway is:

Running Slack with 2.4.18 kernel...
It has 2 NIC's... (3com nic[eth0] and realtek nic[eth1])
eth1'ip is 192.168.0.1/255.255.255.0


My older computer that is just a client is:

Running Slack with 2.4.18 kernel...
it has 1 nic... (realtek[eth0])
eth0 is dhcp'd through the server computer

These two computers are hooked together with a crossover cable

I am looking to share the connection of eth0 on my server with the client computer. I do not want:

A GUI program to do this and
No firewall

I have successfully done this with Mandrake and its DrakConf GUI, so I know the hardware is certainly compatible.

I have tried looking at linuxquestions.org search function and found nothing that I understood and the same with Google.

If you know, what is the best way to get this done?
 
Old 08-18-2002, 05:24 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
You won't do this without a firewall. To be more precize, without a program (ipchains/iptables) that can be used also to make a firewall. Simply, tou need masquerading, if I understand correctly.
 
Old 08-18-2002, 05:29 PM   #3
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
What you did with mandrake is that you used a GUI to make the firewall rules and those proberly included masquarading.

So use iptables and try to understand what it does so you can easely adapt to changes.

Good luck

There are a lot firewall scripts on the internet. use them.
 
Old 08-18-2002, 08:09 PM   #4
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
Thanks for the help... I guess... I'm sure I can find iptables on google ... i was wondering if someone would be willing to give me an idea how iptables works and how i would use in order to make sure my client computer can access the ineternet.

Anyone have a clue? Only interested in answers from those that can help.
 
Old 08-19-2002, 02:29 AM   #5
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
Try http://www.netfilter.org/documentati...ials/blueflux/

This helps you out understand iptables..
 
Old 08-23-2002, 06:15 AM   #6
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
again... i have taken a look at that and it really makes no sense to me...

if anyone is willing to help me out, take a look at the above configuration i have set up and let me know how this can be done...
 
Old 09-01-2002, 09:13 PM   #7
shekhar
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
If you want to share the pc for internet. Better you use squid as a proxy server. For Squid you have to install squid packeg and following one changes is required in squid.conf file which is basicaly present in /etc/squid/squid.conf.

Just search the following Line.
http_access deny all
and replace it from
http_access alllow all
and restart the squid as
service squid restart.
 
Old 09-02-2002, 11:50 AM   #8
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
Still you need some firewall rules then!!
 
  


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
Internet connection sharing fdawy Linux - Networking 22 10-06-2005 09:23 AM
sharing my internet connection berrance Linux - Networking 1 02-25-2005 11:33 AM
SHaring internet connection bart59 Linux - Networking 1 01-27-2005 07:24 AM
Internet Connection Sharing geekbyday Linux - Networking 9 11-19-2004 10:59 PM
Internet connection sharing mark_booze Linux - Newbie 22 01-02-2004 12:37 AM


All times are GMT -5. The time now is 04:12 PM.

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