PDA

View Full Version : Simple routing/firewall setup


supraway
01-10-02, 07:10 PM
I have a simple question. I am running Mandrake Linux 8.1, and (will) have 2 network cards installed -- a Realtek 8139, and a 3com 3C905C network card. As of right now, I only have the Realtek card enabled (don't have the 3com yet :beer: ) and am wondering -- how can I route my internet through this computer? I have some options, Ip Routing, Firewall, Bridging, Connection Sharing, and Masquerading.

Here is what is going down: the computer running Linux will be connected to my University network via the Realtek @ 100 megabit (DHCP). This requires that I run Netscape and login through a per-port authentification. This, in turn, will allow me to connect to the network and internet.

The Linux computer will be running a Counter-strike server full time, sharing the internet connection, and whatever else I want it to do.

This will share the internet via crossover wire from the 3com card to my generic 100baseT card in my XP system (see below). Question: what do I need to setup my IP settings to be on the 3com card, and my XP machine?

My only concern is being able to host various things on the Windows machine such as FTP, filesharing apps, and most importantly, online games. BTW, if I set the Linux server up as Firewall, do I need to set my port on the CS server as 27016, or will firewalling screw around with my normal ports?

So, my main question is, which of these schemes should I use for sharing my internet?

supraway
01-11-02, 07:49 PM
uhhh, bump??

Jon
01-11-02, 07:59 PM
For ease of setup, I would go with either IP routing or connection sharing.

supraway
01-14-02, 01:00 AM
Ok, got my 3c905 card this weekend, and now I am having issues :(. I got the 3com seeing the network, and my Realtek card seeing my little 1 pc lan, but I can't get the XP machine to see the internet.


Here's the settings on the linux computer:

3com card is using DHCP (have to, even though it is a static IP address -- University port authentification).

Realtek card IP set at IP 192.168.0.1, subnet 255.255.255.0.


On the XP computer:

Generic NIC IP set at 192.168.0.2, subnet 255.255.255.0, Gateway 192.168.0.1, DNS servers at 128.110.124.***, and 128.110.139.***.

In Linuxconf, I have tons of options to set, and I don't even know where to start. Here are the options. If you have an answer to even one, please post.

1) Default Gateway -- Enter the IP number of the main gateway and indicate if this machine is allowed to route IP packets (gateway box + Enable routing checkmark)

2) Other routes to networks -- If your network has access to other networks you must tell how to reach those networks. Select [Add] to add a new route. (table with three headers -- Network, Netmask, and Gateway).

3) Other routes to hosts -- If your network has access to remote hosts you must tell how to reach those hosts. Select [Add] to add a new route. (table with two headers -- Host and Gateway)

4) Routes to alternate local nets -- If there are several IP networks sharing the same physical network (wire), you must configure the routing this here. Select [Add] to add a new route. (same as other routes to networks)

OMG I'M NOT CISCO CERTIFIED OR ANYTHING !#$^%.