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

→‎Firewall: syntaxhighlight
(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.
editor
698

edits