• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

HE Tunnel via wireguard

Started by Pedro Buffon, June 05, 2024, 11:19:04 AM

Previous topic - Next topic

Pedro Buffon

Hi guys, so i currently trying to configure up an HE tunnel via wireguard toa Debian 12 system, wireguard already working. the following is a systemd service file that i`m using after researching:

[Unit]
Description=he.net IPv6 tunnel
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/ip tunnel add he-ipv6 mode sit remote <Server IPv4 Address> local <Here i use the gateway from wireguard on the server> ttl 255
ExecStart=/usr/bin/ip link set he-ipv6 up mtu 1480
ExecStart=/usr/bin/ip addr add <Client IPv6 Address> dev he-ipv6
ExecStart=/usr/bin/ip -6 route add ::/0 dev he-ipv6
ExecStop=/usr/bin/ip -6 route del ::/0 dev he-ipv6
ExecStop=/usr/bin/ip link set he-ipv6 down
ExecStop=/usr/bin/ip tunnel del he-ipv6
[Install]
WantedBy=multi-user.target

I have a backup Mikrotik router, the same configuration there works like a charm, i only can`t manage to make it work on debian 12.