IPv6 SpeedTouch: Difference between revisions

(clean up)
(→‎Firewall: syntaxhighlight)
Here's my iptables for ipv4 (/etc/network/if-up.d/iptables):
 
<syntaxhighlight lang=bash>
<tt>
#!/bin/sh
PATH=/usr/sbin:/sbin:/bin:/usr/bin
# Enable routing
echo 1 >/proc/sys/net/ipv4/ip_forward
</syntaxhighlight>
</tt>
 
And here's the slightly simpler ip6tables (/etc/network/if-up.d/ip6tables):
 
<syntaxhighlight lang=xml>
<tt>
#! /bin/bash
#
#
ip6tables -A FORWARD -i ppp0 --dport 80 -d 2001:8b0:xxxx:1::2 -j ACCEPT
</syntaxhighlight>
</tt>
 
Finally don't forget to <tt>chmod +x</tt> these two files to ensure they'll execute when the interfaces come up.