LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-26-2001, 11:23 AM   #1
tyler_durden
Member
 
Registered: May 2001
Posts: 125

Rep: Reputation: 15
setting up IP Masquerade for linux router


I currently have a cable modem that is shared among several roomates. I also have a linux box that does samba and a bunch of other stuff on the local network. i want to set up a router with linux to share the cable modem. We currently use win2k on the router with internet connection sharing. this works, but i am looking for a better solution.
i have set up and used freesco, but the ip masquerade doesn't allow for certian things that work with win2k nat. for example, age of empires 2 will not work with freesco, but will work with win2k nat.
Is there a way that i can set up ip masquerade to allow most connections, even weird ones like age of empires, and most other games, and still secure the internal network. win2k seems to work fine for this, but i am sure there is a better solution for linux. thanx for the help.
 
Old 06-26-2001, 03:19 PM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
You have run into the problem that most gamers/masqueraders hit at one point or another. The issue is that games like AOE sometimes use Random(but predictable) ports in a certain range. Since your kernel cannot magically find these ports, or realize that it's a game not an intruder it doesn't like them. There are many sites on the net that show you how to enable certain ports. If your truly using ipchains I'd suggest:

www.tsmservices.com/masq/

It's still updated, but with iptables being the big boy on the block it's a bit obsolete. Good luck.

J
 
Old 06-26-2001, 03:22 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Setting up IP Masquerading is very straight forward... Have a look at http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO.html and http://www.linuxdoc.org/HOWTO/IPCHAINS-HOWTO.html (assuming you are on 2.2.).

Once the cable modem is setup on the linux box (a different story, search the forum!) it basically boils downto
Code:
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
This assumes you are using 192.168.1.x as you IP addresses. You then just set your linux box as the default gateway for your other machines and its job done.

Most things work for me, and there are a lot of additional modules to help when things don't.

HTH

Jamie...
 
Old 06-26-2001, 05:42 PM   #4
tyler_durden
Member
 
Registered: May 2001
Posts: 125

Original Poster
Rep: Reputation: 15
how does win2k masquarading know those. is there a way to allow most incoming connections by default. i am more worried about everything working then security
 
  


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
Setting up a router under Linux shodekiagari Linux - Networking 8 01-16-2005 02:45 AM
Setting linux as Router puniti Linux - Networking 2 07-26-2003 09:01 AM
Setting linux to use router nigma Linux - Networking 6 05-04-2003 11:59 PM
Setting Up My Router In Linux! NeedsHelp Linux - Networking 2 08-28-2002 10:56 PM
Setting up a linux router? overide2k Linux - Networking 3 11-12-2001 09:46 PM

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

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