|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More |
|
#1
|
|||
|
|||
|
Linux as a router
I am trying to use my linux box as a router so that I can surf using my OSX box. I have tried a few things and failed. I am looking for a good tutorial or explanation of how to do this using Redhat 7.1. I accessing the internet through a dial up modem.
E. |
|
#2
|
||||
|
||||
|
I am using IP-tables....
Haven't got any URL to provide you with but search for ip tables tutorial linux ..in a searchengine
__________________
- [ If I cant fix it, ask MacGyver... ] - |
|
#3
|
|||
|
|||
|
Alternatively try ipchains. Search for ipchains HOWTO.
__________________
PHP manual | MySQL manual | Apache docs | Linux Documentation Project | Free Software Foundation Smart Questions HOWTO | PHP security | PHP FAQ | Posting HOWTO Wikipedia | English dictionary | Google | News | RFCs Thus Spoke Zarathustra | A Skeptic's Guide to Christianity | Project Gutenberg | Skeptic's Annotated Bible ParEcon | Marxists Internet Archive | The Memory Hole | Landover Baptist | DHMO Research Universal Declaration of Human Rights | UN Charter | Geneva Conventions Sinfest | Chopping Block | Filthy Lies | Bob the Angry Flower | How to Shoot Yourself In the Foot |
|
#4
|
||||
|
||||
|
What ip mask are you using for your Network Card... if your using 198.168.0.X as your IP address (where X = your machine number.. ie: 192.168.0.1) on the network card the following should work (you will need root access of course):
Open up and edit the file "/etc/rc.d/rc.local" file and add the following: Code:
echo "1" > /proc/sys/net/ipv4/ip_forwarding ipchains -P forward DENY ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0 Next open up and edit the file "/etc/sysconfig/network" and add or edit the following line: Code:
FORWARD_IPV4 = yes Then reboot... Please note this was based on RedHat 6 and it worked, so it may or may not work on other systems... all ya can do is try it and see... Another good idea is to install and use Squid Proxy Caching Server... Hope this helps God Bless Scott
__________________
deepspring - "Netscape 4 users are like lemmings... You can't help but laugh when one falls off a cliff" Last edited by deepspring : November 6th, 2001 at 09:35 AM. |
|
#5
|
|||
|
|||
|
Btw, you can do many "nice" things with ipchains:
|
|
#6
|
||||
|
||||
|
You can even accidently redirect all packets to yourself and lock your machine up... (don't recommend this)...
![]() Lockout out all of your LAN and block access to certain ports... You can even have IP chain wars in the computer labs at uni or college... ![]() |
|
#7
|
|||
|
|||
|
If you're using your Linux router to route to a broadband connection such as cable or dsl, you'll need a firewall.
One of the easier ones I've found to configure would be gShield, but there are dozens of good ones floating around Freshmeat. Ref. http://freshmeat.net http://muse.linuxmafia.org/gshield.html |
|
#8
|
|||
|
|||
|
>> johan: I am using IP-tables....
Good choice. >> Alternatively try ipchains Bad choice. ipchains, being a stateless packet filter, is not secure in design. So do what johan told you to do. You might not concern about security. My whole point is, if you are new to both, pick the best alternative - iptables, and stop wasting your time on learning ipchains. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Linux as a router |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|