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