From: Lim Boon Ping <syseeker@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: Setup simple PC-based router using IPTABLES
Date: Wed, 12 Jan 2005 00:53:42 -0800 (PST) [thread overview]
Message-ID: <20050112085342.40592.qmail@web12503.mail.yahoo.com> (raw)
Hi,
I need some help on using IPTABLES to setup a simple PC-based router (for LAN usage).
The PC consists of a 10/100 NIC on eth0, and a gigabit fiber NIC on eth1. The gigabit fiber NIC is connected to another fiber-based port, whereas the 10/100 NIC is connected to a 10/100 hub. Now, for all packets coming from eth0, forward it to eth1, and vice versa.
Could anyone verify/suggest commands to set for this setting?
# iptables -A FORWARD -i eth0 -o eth1
# iptables -A FORWARD -i eth1 -o eth0
Is it that's all we need to do? Thanks.
Regards,
Jocelyn
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
next reply other threads:[~2005-01-12 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 8:53 Lim Boon Ping [this message]
2005-01-12 9:09 ` Setup simple PC-based router using IPTABLES Ming-Ching Tiew
2005-01-12 9:10 ` Jacob Mathew
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=20050112085342.40592.qmail@web12503.mail.yahoo.com \
--to=syseeker@yahoo.com \
--cc=netfilter@lists.netfilter.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