Networking Forums

Networking Forums > Computer Networking > Linux Networking > Setting up Net Gateway in Linux?

Reply
Thread Tools Display Modes

Setting up Net Gateway in Linux?

 
 
x0054
Guest
Posts: n/a

 
      09-08-2006, 07:26 PM
Hi all,

This is a repost from alt.os.linux. I apologize for multiposting, but I
think this is a more appropriate group for the question.

I have a computer with 2 NICs, eth0 is 10/100, and eth1 is gigabit. I
also have a brand new router from the wonderful folks over at Netgear.
The router is WNR854T and it is the worst piece of shit I have ever
owned

Basically, it's very unstable and it crashes regularly. What I would
like to do is connect the DSL modem directly to eth0 and then connect
the plug eth1 to one of the ports on the router. That way, if it
freezes, my server would not be effected. I searched for tutorials but I
keep finding ether entire volumes on ipchains or something dealing with
2.2 kernel Can some one recommend a good tutorial that deals with
this in the context of a modern kernel and perhaps debian? Something for
braindonors is perfect, not that I do not want to learn, just have no
time in the next few weeks First few weeks of law school.

As suggested I took a look at few packages, one of them being gShield.
It seams like that would do the trick, but I am afraid that the script
would set something, and later on I would not know how to fix things, if
something was to go wrong. A simple, step by step example on how to set
this up manually would be best, but I can not find one.

Would much appreciate any help,

- Bogdan

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      09-08-2006, 07:56 PM
On 2006-09-08, x0054 <(E-Mail Removed)> wrote:
> The router is WNR854T and it is the worst piece of shit I have ever
> owned


So why don't you return it and get a new one?

> Basically, it's very unstable and it crashes regularly. What I would
> like to do is connect the DSL modem directly to eth0 and then connect
> the plug eth1 to one of the ports on the router.


That would be good... especially if you could explain what kind of
'DSL modem' you've got and what stop you to connect it.

Davide

--
Debating unix flavors in the context of anything Microsoft is like talking
about which ice cream flavor tastes least like sawdust with turpentine
sauce. --void
 
Reply With Quote
 
x0054
Guest
Posts: n/a

 
      09-09-2006, 06:06 PM
Davide Bianchi <(E-Mail Removed)> wrote in
news:(E-Mail Removed) 3:

> On 2006-09-08, x0054 <(E-Mail Removed)> wrote:
>> The router is WNR854T and it is the worst piece of shit I have ever
>> owned

>
> So why don't you return it and get a new one?


I would, unfortunately the 30 day return period is up. I bought it
before moving, and did not plug it in until 3 weeks later.

>
>> Basically, it's very unstable and it crashes regularly. What I would
>> like to do is connect the DSL modem directly to eth0 and then connect
>> the plug eth1 to one of the ports on the router.

>
> That would be good... especially if you could explain what kind of
> 'DSL modem' you've got and what stop you to connect it.


The outside connection to the dsl works fine. It actually supports dhcp
so all I have to do is plug it in and it's good to go. My question was,
how to setup the firewall and other stuff, so my server can share it's
connection with other computers on the network.

- Bogdan

>
> Davide
>


 
Reply With Quote
 
sunil.maryala@gmail.com
Guest
Posts: n/a

 
      09-10-2006, 08:11 PM
Hi,

First of all you need to enable IP Forwarding on Linux Box, below is
the Procedure

Turn on IP forwarding to allow Linux computer to act as a gateway or
router.
echo 1 > /proc/sys/net/ipv4/ip_forward
Default is 0. One can add firewall rules by using ipchains.
Another method is to alter the Linux kernel config file:
/etc/sysctl.conf Set the following value:

net.ipv4.ip_forward = 1



See file /etc/sysconfig/network for storing this configuration.

FORWARD_IPV4=true


And now we come to firewall configuration, here is the link where a
sample configuration is mentioned which might help you configuring your
scenario

http://www.faqs.org/docs/linux_netwo...l.example.html

Thanks,
Sunil


x0054 wrote:
> Davide Bianchi <(E-Mail Removed)> wrote in
> news:(E-Mail Removed) 3:
>
> > On 2006-09-08, x0054 <(E-Mail Removed)> wrote:
> >> The router is WNR854T and it is the worst piece of shit I have ever
> >> owned

> >
> > So why don't you return it and get a new one?

>
> I would, unfortunately the 30 day return period is up. I bought it
> before moving, and did not plug it in until 3 weeks later.
>
> >
> >> Basically, it's very unstable and it crashes regularly. What I would
> >> like to do is connect the DSL modem directly to eth0 and then connect
> >> the plug eth1 to one of the ports on the router.

> >
> > That would be good... especially if you could explain what kind of
> > 'DSL modem' you've got and what stop you to connect it.

>
> The outside connection to the dsl works fine. It actually supports dhcp
> so all I have to do is plug it in and it's good to go. My question was,
> how to setup the firewall and other stuff, so my server can share it's
> connection with other computers on the network.
>
> - Bogdan
>
> >
> > Davide
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Gateway Reverts to Old Setting DukieDallas Windows Networking 17 09-15-2006 04:35 AM
Setting up a Windows VPN through a Fedora Linux gateway Carlos Moreno Linux Networking 3 05-27-2005 05:44 AM
rtnetlink, setting gateway for eth1 fails Scott Derrick Linux Networking 0 07-28-2004 04:40 PM
Setting up a simple gateway Captain Beefheart Linux Networking 2 07-22-2004 08:31 PM
Setting up Gateway Dario Kampkaspar Linux Networking 6 02-02-2004 04:29 PM



1 2 3 4 5 6 7 8 9 10 11