Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everyone! My name is Sohaib Khan. I am implementing a proxy server in linux. I need to know how to add route? my devices informations are: eth0: 192.168.3.100 eth1: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    2

    how to add route?


    Hello everyone!

    My name is Sohaib Khan. I am implementing a proxy server in linux. I need to know how to add route?

    my devices informations are:
    eth0: 192.168.3.100
    eth1: 192.168.2.100

    my eth1 is connected to internet and eth0 is connected to switch which will distribute internet to the client. now how can i provide internet access to clients which are connected to eth0.

    Please help me out here.

    Thanks in advance.

    Regards.

    Sohaib Khan

  2. #2
    Linux User
    Join Date
    Dec 2009
    Posts
    264
    Hi there,
    since I don't know the answer myself, I searched a little and found something that's probably gonna help you:
    Linux Proxy Server - How To Set Up and Configure IPTABLES for NAT Linux Proxy Server

    Also works for Ubuntu and co.

    Tip, that lines are very important:
    echo " Enabling IP forwarding..."
    echo "1" > /proc/sys/net/ipv4/ip_forward
    echo "1" > /proc/sys/net/ipv4/ip_dynaddr
    First I thought you wanna know how to add a gateway address into your routing table. Kinda misleading heading *gg*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •