LinuxQuestions.org
Register a domain and help support LQ
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-31-2004, 10:33 PM   #1
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
trying to setup linux as router for laptop


i'm trying to get my wife's laptop up on the network(internet) with wlan.

currently i have a server, and 2 workstations on lan to linksys router.
(samba, named, bind9, nfs, mysql, blah blah blah).

i installed a wireless pci (xterasys)on one of my workstations(rh9 ) for testing,
before i set this up on my server( for obvious reasons), and a wireless
on her laptop( winxp for now).


i just want to get internet acces for the laptop, through the rh9 workstation,via wlan0.
i don't want to use dhcp as in another post i found here.

all i need is some direction in this matter, i do read, and search....
i figured this didn't need to be in wireless forum, seeing this could be done
the same with lan

some info:
laptop sees rh9 box, good signal

rh9:
eth0 192.168.1.2
wlan0 192.168.2.2
named started ( default config)

thanks !

Last edited by spooge; 08-31-2004 at 10:37 PM.
 
Old 08-31-2004, 11:04 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
I think all you need to do is configure the client:

1. Start menu -> network connections

2. Goto the options dialog of the wireless card

3. Goto the properties dialog of TCP/IP networking

4. Manually enter your IP address and the ip address of the linux box
as your default gateway.

5. From a command prompt, execute ping www.yahoo.com to see if it works.

Actually, also make sure that ip forwarding is enabled on the linux box.
If not,
echo 1 > /proc/sys/net/ipv4/ip_forward
 
Old 08-31-2004, 11:29 PM   #3
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
thanks bobwall,

no luck


i gonna do some serious reading. firewall/masq.
and wireless.
 
Old 09-01-2004, 11:00 PM   #4
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
sep 1: 9:55pm
I can ping both machines!
after 12hrs at work work, every day, i'm gettin it.

looks like an iptable rule now. found a script to test
http://www.ecst.csuchico.edu/~dranch/LINUX/ipmasq/c-html/ipmasq-compiling3.1.html
oops hopes thats ther right one, 2 nights of heavy drinkn

after 3 years of linux
havn't touch't iptables !
oh boy

with more threads like this..... i'll make it to guru status, and tell the newbs to go google/linux !


Last edited by spooge; 09-01-2004 at 11:01 PM.
 
Old 09-01-2004, 11:17 PM   #5
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Here's how I share my lousy dialup connection:

iptables -F
iptables -t mangle -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

(as always, make sure ip forwarding is on)

I know that its evil security wise, but hey, it works every time.
 
Old 09-01-2004, 11:37 PM   #6
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
thanks bob

i got the laptop up on net!
but then with no firewall active on rh9 box

i'l try your advise
 
  


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
how to setup router on linux as a open firewall thirumala Linux - Networking 8 04-10-2004 06:38 PM
Linux Router Project on a laptop m_reider Linux - Laptop and Netbook 4 12-04-2003 11:40 AM
setup linux firewall/router sub_netter Linux - Networking 4 08-15-2003 07:18 AM
Load Balancing Linux Router Setup remigus Linux - Networking 2 12-02-2002 10:28 PM
Linux Router, setup???? francisjk Linux - Networking 4 08-08-2002 07:59 PM


All times are GMT -5. The time now is 03:13 AM.

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