Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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:

    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.


    Sohaib Khan

  2. #2
    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