Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Server firewall settings  (Read 621 times)

Dolphyn

  • Newbie
  • *
  • Posts: 1
Server firewall settings
« on: August 18, 2016, 05:57:06 PM »

I've recently set up a tunnel for a CentOS server and I thought it might be worth documenting two steps that were necessary before outsiders could connect to my new IP:

(1) iptables needs to allow "protocol 41" connections from HE's Server IPv4 address:
iptables -A INPUT -s xx.xx.xx.xx -p 41 -j ACCEPT

(2) ip6tables needs to allow any needed connections, for example
ip6tables -A INPUT -p tcp --dport 22 -j ACCEPT
ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT
ip6tables -A INPUT -p tcp --dport 443 -j ACCEPT

It took me a while to figure it out, so maybe this post will help someone.
Logged