LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2006, 01:19 AM   #16
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30

Have you seen the (IMO excellent) ProjectFiles firewall script?

You can get if from http://projectfiles.com/firewall (get the latest 'prerelease' version 2.0rc10 - the "installer" installs and old version 1.1). It sounds like all you'd need to do is edit it to define your "external" (wlan0) and "internal" (eth0) interfaces, chmod +x it and drop it into /etc/rc.d. It's very flexible and the script contains very lucid notes on how to configure it.

Last edited by odevans; 01-30-2006 at 01:21 AM.
 
Old 01-30-2006, 01:38 AM   #17
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by uselpa
I asked you to post your routing tables, that would help.
Where would I find them?

The only thing I've added is this script to rc.local:
Code:
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
Also:
Quote:
odevans Have you seen the (IMO excellent) ProjectFiles firewall script?

You can get if from http://projectfiles.com/firewall (get the latest 'prerelease' version 2.0rc10 - the "installer" installs and old version 1.1). It sounds like all you'd need to do is edit it to define your "external" (wlan0) and "internal" (eth0) interfaces, chmod +x it and drop it into /etc/rc.d. It's very flexible and the script contains very lucid notes on how to configure it.
I tried that, but due to my network topography, available here
I don't beleive that will work. My wlan0 interface is not really an out interface. If you see what I mean, it's only the "out" interface for this building.

Any other ideas?
 
Old 01-30-2006, 01:59 AM   #18
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by cwwilson721
Where would I find them?
As I said, "netstat -r" or "route".
 
Old 01-30-2006, 02:10 AM   #19
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Output of netstat -r:
Code:
$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
localnet        *               255.255.255.0   U         0 0          0 eth0
localnet        *               255.255.255.0   U         0 0          0 wlan0
loopback        *               255.0.0.0       U         0 0          0 lo
default         router          0.0.0.0         UG        0 0          0 wlan0
default         router          0.0.0.0         UG        0 0          0 eth0
 
Old 01-30-2006, 02:15 AM   #20
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I asked for the routes on the other machines, i.e. those who do not have the wlan interface.
But these also look weird.

Sorry to insist, but you really should read the answers you get, otherwise people will give up. I do at this point.
 
Old 01-30-2006, 02:16 AM   #21
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
It just "seems" that whenever I try to use a local net address in firefox, it only uses the eth0 interface (Building 2), and uses the wlan0 only for internet, so no access to building 1.

Can ping to building 1, but only if I specify the wlan0 interface.
 
Old 01-30-2006, 02:21 AM   #22
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by uselpa
I asked for the routes on the other machines, i.e. those who do not have the wlan interface.
But these also look weird.

Sorry to insist, but you really should read the answers you get, otherwise people will give up. I do at this point.
You asked for netstat -r, you got it. You never asked for other machines. Being that they are XP boxes, that won't work.

If you read my posts, you would know that all the other machines are XP boxes, and they have no problems. This is the only box that cannot access Building 1 (Can ping, cannot connect thru web interface)

Once more, my network setup is here.

Last edited by cwwilson721; 01-30-2006 at 02:30 AM.
 
Old 01-30-2006, 01:44 PM   #23
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Never mind.
BTW, "route print" works well on Windows boxes.

Last edited by uselpa; 01-30-2006 at 01:48 PM.
 
  


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
another simple routing question crm Linux - Networking 3 03-29-2005 01:45 AM
Simple Routing - not working jsinfcva Linux - Networking 5 12-15-2004 09:08 PM
simple routing rules freelinuxcpp Linux - Networking 0 03-03-2004 07:33 AM
simple routing between subnets without NAT iggymac Linux - Newbie 2 03-24-2003 04:38 PM
Simple routing nightmare rodo Linux - Networking 1 11-13-2002 01:14 PM

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

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