LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-27-2005, 04:03 PM   #16
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15

so from Win-XP you can

PING www.google.com

without problem????

DO you have MSN
 
Old 09-27-2005, 04:05 PM   #17
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
ya fdawy@hotmail.com
 
Old 09-27-2005, 04:08 PM   #18
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
please answer my questions

again:-

1. can you ping www.google.com from your WIN-XP macvhine
2. what is the IP address of your WIN-XP machine?

I will enter your MSN address into mine and see what happens BUT please answer the questions I ask you.

thanks
 
Old 10-05-2005, 11:40 AM   #19
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
Did you configure your Windows box to use your Linux box as a Gateway?
Did you configure DNS servers on your Windows box?
 
Old 10-05-2005, 02:37 PM   #20
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
yes I did
About 3 monts ago, I also helped this guy but he wouldn't answer the questions I posed and was hard work, but managed to get him onto internet from his XP-->Linux-->Internet.

Last edited by turnbui; 10-05-2005 at 02:45 PM.
 
Old 10-05-2005, 04:52 PM   #21
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Rep: Reputation: 15
yea, i'd say not enough info...but...anyway, i got mine working real easy (i got help from the forums a long time ago xD)

although....im running a debian system...i dont know how far this will get you since you didnt say your distro..(unless i missed it..)

Code:
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
replace eth0 with the interface that goes to your internet!! hope that helps....when you reboot, you have to type this in again (assuming it works), so you'll have to ask someone how to make startup scripts...i'm still learnin linux too
 
Old 10-05-2005, 07:06 PM   #22
abcdefg
Member
 
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
Re: Connect to internet

Quote:
Originally posted by turnbui
Try this link. Very good details on how to connect to internet.

http://www.iwpcs.co.uk/info.html

and specifically

http://www.iwpcs.co.uk/simple_net_setup.html

it's in english I'm afraid but easy to follow. Other good stuff as well.
Babel-fish can translate entire websites.
 
Old 10-06-2005, 09:23 AM   #23
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
the Internet connection sharing problem the set



Edit /etc/sysconfig/network-scripts/ifcfg-eth0 -

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes

Edit /etc/sysconfig/network-scripts/ifcfg-eth1 - This is the main config file for the second (LAN facing) interface.
It should read :

DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.3.1
NETMASK=255.255.255.0
NETWORK=192.168.3.0
BROADCAST=192.168.3.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/resolv.conf should contain the nameserver address(es) - put the address of your ISPs nameserver right at the top. eg:

nameserver 192.168.0.1

The default gateway and your hostname go in /etc/sysconfig/network:
HOSTNAME=localhost
NETWORKING=yes
GATEWAY=192.168.0.1


We then need to set up packet forwarding:
Put the following command at the beginning of /etc/sysctl.conf

net.ipv4.ip_forward=1

Then 'turn off' the redirection to squid:
Install iptables - type "urpmi iptables" as root, or use the package manager in the start menu or mcc

Add the following code to the bottom of /etc/rc.d/rc.local.

iptables -t nat -D PREROUTING -i eth0 -j loc_dnat



Reboot."""""""""


iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
  


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 explorer Mandriva 1 03-17-2005 06:25 PM
Internet connection sharing mark_booze Linux - Newbie 22 01-02-2004 12:37 AM
internet connection sharing Sathe Linux - Newbie 4 12-05-2001 08:59 PM
internet connection sharing Danobri Linux - Networking 14 07-21-2001 11:50 PM
Internet Connection Sharing qsilver Linux - Networking 1 07-19-2001 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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