linux server routing

hey i'm kinda new with linux and very very unfamiliar with networking.. any here's my situation… our company has currently installed 2 broadband connection on the server.. all the workstations have their ip's blocked by the servers so that they cannot have access to the internet.. only 2 linux server (one is cent OS and the other red hat enterprise) have an access to the internet.. so i was asked to investigate about making the linux servers act as router so that my workstation can access the internet through the linux servers…. i found several topics about routing but i think my situation is a bit different because the linux server is not really the source of the internet but rather only a workstation in itself..

so can anyone help me out… or please point me to the right direction.. i've tried ipmasq, iproute2, iptables but doesn't seem to work… and also, please make your instructions very simple because i've not really studied much on networking….

thanks a lot =)

4 Replies

here's the network configuration.. internet access: 192.25.253.1 my local pc: 192.25.253.119 linux servers 192.25.253.5 and 192.25.253.121

so can anyone please show me how to have access on 192.25.253.1 using 192.25.253.5 as the gateway of my pc 192.25.253.119.. please and thanks

Are you saying there are 2 servers, 2 IPs, each server has a direct broadband connection?

You probably have routers & firewalls as well. Surely there must be a networking expert at your company who set this up & maintains it. Its not really something you can configure without knowing the network topoology.

Anyway this has nothing to do with linode.

I'd recommend a 3rd server box. It will need 2 or 3 NICs in it that are linux compatable. There's probably a gui somewhere to turn on routing. One nic to The World, one nic to a DMZ (for your other 2 boxes), one nic to internal network. DMZ is sorta optional.

Do a bare install of Debian, add your favorite text editor, and get gShield from http://muse.linuxmafia.org. Edit the config file, change appropriately, and set it to load at boot. Then point your internal LAN clients to it as the default gateway. Up and running.

Then, go learn about iptables (I'm still just use gSheild and I've been using Linux for a long time) for real, and maybe setup a transparent proxy, etc.

@gigsz:

hey i'm kinda new with linux and very very unfamiliar with networking.. any here's my situation… our company has currently installed 2 broadband connection on the server.. all the workstations have their ip's blocked by the servers so that they cannot have access to the internet.. only 2 linux server (one is cent OS and the other red hat enterprise) have an access to the internet.. so i was asked to investigate about making the linux servers act as router so that my workstation can access the internet through the linux servers…. i found several topics about routing but i think my situation is a bit different because the linux server is not really the source of the internet but rather only a workstation in itself..

so can anyone help me out… or please point me to the right direction.. i've tried ipmasq, iproute2, iptables but doesn't seem to work… and also, please make your instructions very simple because i've not really studied much on networking….

thanks a lot =)

Pay someone that knows what they are doing to do it. You are more likely to get something that's internet safe.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct