Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "J. Bakshi" <joydeep@infoservices.in>
To: netfilter@vger.kernel.org
Subject: ip forwarding issue with dual gateway
Date: Fri, 06 Nov 2009 16:25:08 +0530	[thread overview]
Message-ID: <4AF4008C.8070204@infoservices.in> (raw)

Hello,

First of all I request you to bear with me as I am not a network guru.

I have two lan cards in my server which is used to share internet
connection with the help of iptables. The config is as below

``````````````````````````````````
echo 1 >  /proc/sys/net/ipv4/ip_forward

iptables -A FORWARD -i ${WAN_IFACE} -o ${LAN_IFACE} -s 192.168.0.0/24 -m
conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
~~~~~~~~~~~~~~~~~~~~~~~~

The setup is working well.  I have one more internet connection which is
cable based so no modem. Hence I again need 2 cards one to connect with
the ISP and forward it to another card which will act as gateway ; just
like above config. The question is shall I follow the above
configuration for the second internet connection ? Is there any
possibility of conflict between the two connection then ? I don't need
any load balancing setup but a setup where I can get the two internet
connections separately.  Please enlighten me. Thanks

             reply	other threads:[~2009-11-06 10:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 10:55 J. Bakshi [this message]
2009-11-09  3:10 ` ip forwarding issue with dual gateway J. Bakshi
2009-11-09  8:01   ` Marek Kierdelewicz
2009-11-10  2:52     ` J. Bakshi

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=4AF4008C.8070204@infoservices.in \
    --to=joydeep@infoservices.in \
    --cc=netfilter@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