Author Topic: Sharing Internet Connection  (Read 478 times)

Maniaman

  • Member
  • **
  • Posts: 188
  • Kudos: 0
Sharing Internet Connection
« on: 28 October 2002, 03:33 »
Ok. I'm using Mandrake 9.0
I want to share the internet connection with a Windows XP system. I tried using Mandrake's Internet Connection Sharing, but the XP machine doesn't recognize the connection. I'm running Samba Server.  Any idea how to get it to work?


And - The XP machine is my dadsmachine. He won't let me put Linux on it   :(
I use my hotmail email on here to keep from begin spammed by trolls. If you want my good email address for something then ask... :)


Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Sharing Internet Connection
« Reply #1 on: 28 October 2002, 03:56 »
You could try to set up a proxy server, or even better you could set up mandrake as a router. ipchains will do this for you.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Sharing Internet Connection
« Reply #2 on: 28 October 2002, 04:25 »
echo "1" > /proc/sys/net/ip_forward
ipchains -P forward DENY
ipchains -A forward -i eth0 -s 192.168.0.2 -d 0/0 -j MASQ

replace 192.168.0.2 with the IP address of the winxp machine. Also make sure you set your linux computer as the gateway in winxp.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Maniaman

  • Member
  • **
  • Posts: 188
  • Kudos: 0
Sharing Internet Connection
« Reply #3 on: 3 November 2002, 22:59 »
I'm having problems with this ipchains thing.

[root@ip-addy-wuz-here root]# echo "1" > /proc/sys/net/ip_forward
bash: /proc/sys/net/ip_forward: No such file or directory


Now what do I need to do? Running Mandrake 9.0
I use my hotmail email on here to keep from begin spammed by trolls. If you want my good email address for something then ask... :)


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Sharing Internet Connection
« Reply #4 on: 3 November 2002, 23:21 »
On the newer kernels it's:

# echo 1 > /proc/sys/net/ipv4/ip_forward

Also on the newer kernels (2.4+) you would want to use iptables rather than ipchains. And you would normally put that command and all the firewall commands/rules in a script. Now Mandrake is supposed to have a graphical tool for configuring the "connection sharing" which is what you are doing here. A more common name for this is "IP Masquerading". Here is the HOWTO:

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/
Someone please remove this account. Thanks...