IPv6 SpeedTouch: Difference between revisions
Appearance
Content deleted Content added
clean up |
→Firewall: bash |
||
| (One intermediate revision by the same user not shown) | |||
| Line 80: | Line 80: | ||
Here's my iptables for ipv4 (/etc/network/if-up.d/iptables): |
Here's my iptables for ipv4 (/etc/network/if-up.d/iptables): |
||
<syntaxhighlight lang=bash> |
|||
<tt> |
|||
#!/bin/sh |
#!/bin/sh |
||
PATH=/usr/sbin:/sbin:/bin:/usr/bin |
PATH=/usr/sbin:/sbin:/bin:/usr/bin |
||
| Line 124: | Line 124: | ||
# Enable routing |
# Enable routing |
||
echo 1 >/proc/sys/net/ipv4/ip_forward |
echo 1 >/proc/sys/net/ipv4/ip_forward |
||
</syntaxhighlight> |
|||
</tt> |
|||
And here's the slightly simpler ip6tables (/etc/network/if-up.d/ip6tables): |
And here's the slightly simpler ip6tables (/etc/network/if-up.d/ip6tables): |
||
<syntaxhighlight lang=bash> |
|||
<tt> |
|||
#! /bin/bash |
#! /bin/bash |
||
# |
# |
||
| Line 164: | Line 164: | ||
# |
# |
||
ip6tables -A FORWARD -i ppp0 --dport 80 -d 2001:8b0:xxxx:1::2 -j ACCEPT |
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. |
Finally don't forget to <tt>chmod +x</tt> these two files to ensure they'll execute when the interfaces come up. |
||