LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-28-2005, 01:37 AM   #1
planetsheinker
LQ Newbie
 
Registered: Jul 2005
Location: Israel
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Inetrnet connection sharing between a Slackware box and windows box


I have a slackware box (that I managed to install after two days) and it has two NIC cards, and adsl modem connected to eth0.
I also have a windows box with one NIC card connected by a cable to the eth1 on the slackware box.
Now, I would like to share the internet connection the slackware box has with the windows box.
Can somebody please help me, or maybe direct me to the proper documentation?
 
Old 07-28-2005, 03:14 AM   #2
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
i'm no expert, (just started using linux like a month ago), but I just googled some stuff and came up with this:

http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/

Quote:
2.1. What is IP Masquerade?
IP Masquerade is a networking function in Linux similar to the one-to-many (1:Many) NAT (Network Address Translation) servers found in many commercial firewalls and network routers. For example, if a Linux host is connected to the Internet via PPP, Ethernet, etc., the IP Masquerade feature allows other "internal" computers connected to this Linux box (via PPP, Ethernet, etc.) to also reach the Internet as well. Linux IP Masquerading allows for this functionality even though these internal machines don't have an officially assigned IP address.
Quote:
2.3. Who Can Benefit From IP Masquerade?
  • If you have a Linux host connected to the Internet and..

  • if you have internal computers running TCP/IP connected that are connected to this Linux box via on a network, and/or

  • if your Linux host has more than one modem and acts as a PPP or SLIP server connected to other computers, and these machines do not have official or public assigned IP addresses (i.e. addressed with private TCP/IP numbers).

  • If you want those OTHER machines to communicate to the Internet without spending extra money to acquire additional Public / Official TCP/IP addresses from your ISP, then you should either configure Linux to be a router or purchase an external router.

here's how i found it by the way. google search for 'linux router' found a link to Linux internet connection sharing for your home network which then led to the IP MAsquerade howto
 
Old 07-28-2005, 03:19 AM   #3
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
use samba

use samba using swat

http://127.0.0.1:901/swat/help/Samba-HOWTO-Collection/

http://www.oreilly.com/catalog/samba/

hope this help
 
Old 12-22-2005, 08:39 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by planetsheinker
I have a slackware box (that I managed to install after two days) and it has two NIC cards, and adsl modem connected to eth0.
I also have a windows box with one NIC card connected by a cable to the eth1 on the slackware box.
Now, I would like to share the internet connection the slackware box has with the windows box.
Can somebody please help me, or maybe direct me to the proper documentation?
Hello planetsheinker,
U didn't specified that has your problem been solved or not.
Me to have the same configuration of two systems as you have.
So if you are still in trouble then i could help you out.

regards
 
Old 12-22-2005, 08:55 PM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Use Network Address Translation (NAT).
 
Old 12-23-2005, 02:19 AM   #6
planetsheinker
LQ Newbie
 
Registered: Jul 2005
Location: Israel
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ruudra
Hello planetsheinker,
U didn't specified that has your problem been solved or not.
Me to have the same configuration of two systems as you have.
So if you are still in trouble then i could help you out.

regards
The problem was solved using http://www.fs-security.com/.
But I dont really like this solution :-(
So if you have a better one, I am all years :-)
 
Old 12-23-2005, 09:35 AM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by planetsheinker
The problem was solved using http://www.fs-security.com/.
But I dont really like this solution :-(
So if you have a better one, I am all years :-)
Its the only solution i know to provide the second machine internet connection through the first one as gateway.
I did this using Shorewall. B'coz the configuration files of shorewall will decide the way you are permitting the seocond machine to access the internet.

regards
 
Old 12-24-2005, 04:30 PM   #8
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
Simple is best.

Buy an external ADSL router with a LAN port - circa 30 quid. Configure it to act as a DHCP server and auto connect. Use NAT if you need certain services on a given machine.
Use a simple switch or hub to connect both PCs and the router together and Bob is your uncle.

Also makes it easy to expand the network at a later date.
 
Old 12-25-2005, 01:13 AM   #9
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
To route traffic between eth0 and eth1 (all traffic, no firewalling) simply put the following lines into a script:

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

Then have that script set to run at boot time.
 
Old 12-28-2005, 10:55 PM   #10
combatbob
LQ Newbie
 
Registered: Aug 2005
Location: Killeen, Texas
Distribution: Ubuntu as of late
Posts: 25

Rep: Reputation: 15
I have two boxes win/lin

My windows and Linux box have their own connection from a standard linksys 4 port router. How ever you can look in /usr/doc on your machine, and reference keywords and locate specific instructions for setting up Samba or server or Lisa etc. Hope this helps
 
Old 09-23-2006, 11:53 PM   #11
combatbob
LQ Newbie
 
Registered: Aug 2005
Location: Killeen, Texas
Distribution: Ubuntu as of late
Posts: 25

Rep: Reputation: 15
Router

Well I guess it wasn't much help, just thought having a router do the work instead of the system, less bog. Most routers today will do just what you want, generic loging routing etc. closing ports limiting access Isolating machines
 
  


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
xp-box to share internet connection with linux-box CrazyHorse Linux - Networking 7 09-28-2006 11:05 PM
Sharing internet access with my Windows box ColdDeath Slackware 5 11-02-2005 03:08 PM
Windows XP box losing connection to Linux box after 30 sec. NeoZeus Linux - Networking 3 07-21-2005 12:02 AM
[Redhat] Sharing a Printer to Windows Box Bi0haZarD Linux - Networking 1 01-13-2005 01:14 PM
Samba or Sharing w/ Windows Box knoppixNUb Linux - Newbie 1 06-08-2004 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:48 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