Created
June 10, 2012 13:39
-
-
Save AlD/2905671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip6_gw=beef:fac3::1 | |
ip6_vhost=beef:fac3::2 | |
irc_ports=6667:6669 | |
interface=eth0 | |
echo 1 irc6 >> /etc/iproute2/rt_tables | |
ip -f inet6 route add default via $ip6_gw table irc6 dev $interface src $ip6_vhost | |
ip -f inet6 rule add fwmark 1 table irc6 | |
ip6tables -t mangle -I OUTPUT -o $interface -p tcp --dport $irc_ports --syn -j MARK --set-mark 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment