Source routing
Shadow Hawkins on Friday, 07 May 2004 17:13:38
Hello.
I have two static tunnels.
I dont know, how set route:
route add -inet6 default -interface gif0
[static tunnel to 6bone-gw.6bone.pl]
How set route for static tunnel to router.ipv6.kewlio.net,
as second interface?
All trafic out on gif0 (in is ok), i try
route add -inet6 3ffe:4005:1000:2e::/64 -interface gif1
but not work.
I want 3ffe:4005:1000:2e::/64 out and in traffic on gif1.
My OS FreeBSD 5.2.1-RELEASE-p6
PS. Sorry, but my english is not good ;-)
Source routing
Shadow Hawkins on Saturday, 08 May 2004 11:14:01
You can do that with ipf.
If you haven't compiled ipf into your kernel, it must be done first by adding
options IPFILTER
to your kernel configuration and then recompiling the kernel.
After that make a file which contains following ipf-rules:
pass out quick on gif1 to gif0:interface-gif0-v6-addr from subnet1 to any
pass out quick on gif0 to gif1:interface-gif1-v6-addr from subnet2 to any
Where subnet1 is routed trough gif0 and subnet2 trough gif1.
Then run
ipf -6 -f file, where file is the file which contains those rules.
Source routing
Shadow Hawkins on Monday, 10 May 2004 18:45:36
i'm having the same problem as Zbigniew Stefaniak, i want gif0 to route through gif0 and gif1 to route through gif1, and have been unable to acomplish that so far. i'm not sure if i understand your syntax for ipf, could i trouble you to explain it a little better? it seems "gif1 to gif0:interface-gif0-v6-addr from subnet1 to any" would have gif1 traffic going through gif0 interface? i'm running freebsd 4.9-p4 btw, thanks in advance.
Source routing
Shadow Hawkins on Tuesday, 11 May 2004 19:07:56
Ok, lets assume you have 2 subnets, for example fe80:1::/48 and fe80:2::/48.
You want everything from fe80:1::/48 to be routed via gif0 and fe80:2::/48 via gif1. Gif0 has address fe80:1::1 and gif1 fe80:2::1.
--
pass out quick on gif0 to gif1:fe80:2::1 from fe80:2::/48 to any
--
"Match all packets on gif0 which have source address inside fe80:2::/48 and redirect those to gif1"
And the "same" on gif1.
--
pass out quick on gif1 to gif0:fe80:1::1 from fe80:1::/48 to any
--
I hope that explained what this is all about.
Source routing
Shadow Hawkins on Tuesday, 11 May 2004 19:40:01
Yeah, thanks !
;-*
I read 'man ipf', and with this example i little understand this :-)
Source routing
Shadow Hawkins on Wednesday, 12 May 2004 02:33:34
thanks Pasi Pekkanen, that was perfect. })
Source routing
Carmen Sandiego on Wednesday, 23 June 2004 22:27:01 [CUT] My OS FreeBSD 5.2.1-RELEASE-p6
is there any solution for linux? i have debian 2.6.6 woody and debian 2.4.22 sarge.
i tried to play with ip6tables by marking packets and routing them with ip rule tables but it doesn't seem to work, any idea?
Posting is only allowed when you are logged in. |