From: "Mike Taekema" <mike@netmaster.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Split Access Problems
Date: Thu, 16 Oct 2003 20:29:01 +0000 [thread overview]
Message-ID: <marc-lartc-106633755428897@msgid-missing> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1772 bytes --]
Good day,
I've searched through the mailman lists and no one seems to have had my problem yet. Here goes:
I've wrote a script that goes through and creates the split access steps. However I have changed somethings.
I've declared all my variables at the top of the shell script.
I only have one physical external ip address. So i created a virtual addess at eth0:0
My first problem is when I run the line: ip route add $P1_NET dev $IF1 src $IP1 table T1
I get the error: Error: argument "T1" is wrong: "table" value is invalid
For reference sake here is my script:
IF1=eth0
IF2=eth0:0
IP1=10.123.124.52
IP2=10.123.124.53
P1=10.123.124.253
P2=10.123.124.251
P1_NET=10.123.124.0/24
P2_NET=10.123.124.0/24
# Now lets add routes to two separate tables (T1, T2). This just tidy's things up a bit.
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip route add default via $P2 table T2
# Now we setup our main routing table.
ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2
# Now we prefrence our default route
ip route add default via $P1
# Next, setup the routing rules. These choose what routing table to route with. Make sure you
# route out a given interface if you already have the corresponding address.
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
exit 0
Intelligent Digital Security.
Mike Taekema
mike@netmaster.com
www.netmaster.com
Page Me!
[-- Attachment #1.2: Type: text/html, Size: 6664 bytes --]
[-- Attachment #2: Netmaster-Main Logo.gif --]
[-- Type: image/gif, Size: 3740 bytes --]
next reply other threads:[~2003-10-16 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 20:29 Mike Taekema [this message]
2003-10-17 2:59 ` [LARTC] Split Access Problems gypsy
-- strict thread matches above, loose matches on Subject: below --
2003-10-22 19:03 [LARTC] Split access problems Mike Taekema
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-106633755428897@msgid-missing \
--to=mike@netmaster.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.