Go to file
2024-08-14 21:36:08 +03:30
.gitignore Update .gitignore 2024-08-14 21:36:00 +03:30
.goreleaser.yml Initial commit 2024-03-03 06:31:46 +03:30
go.mod Add whitelist 2024-08-06 22:58:45 +03:30
go.sum Add whitelist 2024-08-06 22:58:45 +03:30
LICENSE Initial commit 2024-03-03 06:31:46 +03:30
main.go Add whitelist 2024-08-06 22:58:45 +03:30
Makefile Initial commit 2024-03-03 06:31:46 +03:30
README.md Update README 2024-08-14 21:36:08 +03:30
VERSION Add whitelist 2024-08-06 22:58:45 +03:30

Sample iptables rules

# IPv4
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8443
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443

# IPv6
sudo ip6tables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8443
sudo ip6tables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443

Sample dnsmasq config

no-dhcp-interface=
enable-tftp=false

listen-address=0.0.0.0
interface=eth0

address=/#/185.218.139.254

server=/pool.ntp.org/1.1.1.1
server=/ntp.ubuntu.com/1.1.1.1

Acknowledgements