Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 5th, 2001, 05:30 PM
Theeggman Theeggman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 266 Theeggman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 33 sec
Reputation Power: 7
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.

Reply With Quote
  #2  
Old November 6th, 2001, 06:10 AM
johan's Avatar
johan johan is offline
Advisor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Stockholm, Sweden
Posts: 446 johan User rank is Private First Class (20 - 50 Reputation Level)johan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 39 m 40 sec
Reputation Power: 9
Send a message via ICQ to johan
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... ] -

Reply With Quote
  #4  
Old November 6th, 2001, 09:32 AM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
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.

Reply With Quote
  #5  
Old November 6th, 2001, 09:38 AM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
Btw, you can do many "nice" things with ipchains:
  • deny access to ad servers - ad free surfing
  • lock out hackers ;-)
  • masqerade your network (as demonstrated by deepspring)
and many more ...

Reply With Quote
  #6  
Old November 6th, 2001, 09:55 AM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
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...

Reply With Quote
  #7  
Old November 25th, 2001, 11:52 PM
Pointman Pointman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 52 Pointman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Exclamation Firewall

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

Reply With Quote
  #8  
Old November 26th, 2001, 12:07 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Linux as a router


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway