Skip to content

Instantly share code, notes, and snippets.

@AlD
Created June 10, 2012 13:39
Show Gist options
  • Save AlD/2905671 to your computer and use it in GitHub Desktop.
Save AlD/2905671 to your computer and use it in GitHub Desktop.
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