Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Mohammad Shakir <shakirgil@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] LARTC] 2 gateway on linux
Date: Sat, 10 May 2003 18:55:56 +0000	[thread overview]
Message-ID: <marc-lartc-105259300504851@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

Dear,
I have setup two isp connection on ppp0 and ppp1 on Red Hat linux 7.3 now i want to route my all network request on both network. When I
have single ppp0 connection I use this script /sbin/iptables --table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT Now I have setup two interface for internet ppp0 and ppp1, now what should I change in my script. I am trying to use two dialup link for load sharing.Further -Martin advice me to add this line in my script
/sbin/iptables -table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp1 -j MASQUERADEand# turn off reverse path filtering
# echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/ppp0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/ppp1/rp_filter
and he also advice me to read Nano-HOWTO, so anyone know from where I can find this document. thanks to Martin and others whose help me to solve this problem.
 

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

[-- Attachment #2: Type: text/html, Size: 1515 bytes --]

             reply	other threads:[~2003-05-10 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 18:55 Mohammad Shakir [this message]
2003-05-10 21:46 ` [LARTC] LARTC] 2 gateway on linux Martin A. Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105259300504851@msgid-missing \
    --to=shakirgil@yahoo.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox