Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Suse 10.1 Internet connection sharing
matt
post May 2 2006, 02:11 PM
Post #1


./configure
***

Group: Members
Posts: 104
Joined: 8-April 05
From: St John's Newfoundland
Member No.: 4,844



Just wondering. I have a system hooked directly to the net running SUSE 10.1, My system has 2 nics with a crossover running to my roommates system. How do I share the connection?


--------------------
INTEL Q6600 Quad Core @2.8
Evga Geforce 8800GT SSC Ed 512
ASUS P5N32-E SLI Deluxe
4G DDR2 - 1 750 Gig HDS
Distro - Slackware-Current / KDE4 / Window Xp MC
---------------------------------------
Distro - Slackware 12 MythTV Box
AMD Athlon 64 3500+
1024 Megs of DDR400
200G HD
Nvidia 8400 GT
Leadtech Winfast TV2000 Tuner
Antec NSK2480 Media Center Case
--------------------------------------
Linux User #384299
Go to the top of the page
 
+Quote Post
Robert83
post May 3 2006, 05:43 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

sorry , I kinda overlooked this, so that is quiet simple, you only need to do the following actualy :

CODE
echo "1" > /proc/sys/net/ipv4/ip_forward


then you can put this somewhere where it will automaticaly launch , probably /etc/rc.d/rc.local

now try to ping external interface of the Suse machine , that should work, try to ping anything else no go, do this to make that happen .

You'll need to add this to POSTROUTING in order to transulate packets from internal lan to outside , and back.

CODE
iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o $EXTIF -j SNAT --to-source $EXTIP

$EXTIF = external interface
$EXTIP = external ip address

Hopefully you already have some sorta firewall rules in action. You can type both of these commands into the console as root, and the effect should be imediately available.

Then you config WinXP computer to use internap ip of your Suse computer as Gateway, and configure it to use ISP's DNS server. (no real point in making your own caching only dns server for 2 computers).

Hopefully this will help smile.gif

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
matt
post May 4 2006, 04:04 PM
Post #3


./configure
***

Group: Members
Posts: 104
Joined: 8-April 05
From: St John's Newfoundland
Member No.: 4,844



I found a temporary solution after. As my room mate just uses the net for browsing and etc I just installed the tinyproxy package for suse and added it to my rc.local. But thanks alot for the help, I'll note that for future reference. My linksys router acts as my firewall to the cable modem. I just didnt have a straight through long enough to reach his room or some rj45 heads to recrimp the crossover im using. But thanks for all the help!


--------------------
INTEL Q6600 Quad Core @2.8
Evga Geforce 8800GT SSC Ed 512
ASUS P5N32-E SLI Deluxe
4G DDR2 - 1 750 Gig HDS
Distro - Slackware-Current / KDE4 / Window Xp MC
---------------------------------------
Distro - Slackware 12 MythTV Box
AMD Athlon 64 3500+
1024 Megs of DDR400
200G HD
Nvidia 8400 GT
Leadtech Winfast TV2000 Tuner
Antec NSK2480 Media Center Case
--------------------------------------
Linux User #384299
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th October 2017 - 07:54 AM