web

command
v0.0.0-...-de83bd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package main provides an example of a simple HTTP server that listens on a * TUN interface. * * You will need to run this program with CAP_NET_ADMIN capabilities to create * the TUN interface. * * For example: * * $ go build -o web * $ sudo setcap cap_net_admin=+ep ./web * $ ./web * * Once the example is running, you will need to configure the TUN interface * with an IP address and a route to the destination network. * * For example: * * $ sudo ip addr add 100.64.0.2/24 dev nsh0 * $ sudo ip addr add fdff:7061:ac89::2/64 dev nsh0 * $ sudo ip link set dev nsh0 up * * You can then access the HTTP server by visiting http://100.64.0.1 or * http://[fdff:7061:ac89::1] in your web browser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL