Re: Setting up Net Gateway in Linux?



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_network/x-087-2-firewall.example.html

Thanks,
Sunil


x0054 wrote:
Davide Bianchi <davideyeahsure@xxxxxxxxxxxxxx> wrote in
news:slrneg3ip4.ib8.davideyeahsure@xxxxxxxxxxxxxxxx:

On 2006-09-08, x0054 <x0054@xxxxxxxxx> 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


.



Relevant Pages

  • Re: proxy network server configuration
    ... The Linux computer using pppd, ... > an external modem connected to the Linux computer's serial port. ... ways of setting this up than others (configuration GUIs versus ... configuration files being written in an exact manner). ...
    (alt.os.linux.redhat)
  • Re: proxy network server configuration
    ... >> I have a Linux computer and two Windows 98SE computers. ... >network protocols, you need to do something like NAT (Network Address ... >ways of setting this up than others (configuration GUIs versus ...
    (alt.os.linux.redhat)
  • Re: Networking XP with Linux box
    ... >> I have a Linux computer on the same network as a Windows XP machine. ... check the configuration of your firwall; ... To connect to a Samba ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Networking XP with Linux box
    ... >> I have a Linux computer on the same network as a Windows XP machine. ... check the configuration of your firwall; ... To connect to a Samba ...
    (comp.os.linux.networking)
  • Re: Networking XP with Linux box
    ... >> I have a Linux computer on the same network as a Windows XP machine. ... check the configuration of your firwall; ... To connect to a Samba ...
    (microsoft.public.windowsxp.help_and_support)