Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

IPv6 SpeedTouch: Difference between revisions

Content deleted Content added
Reedy (talk | contribs)
clean up
Reedy (talk | contribs)
Firewall: syntaxhighlight
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=xml>
<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.