add docs for exit setup

This commit is contained in:
Jeff Becker 2020-08-10 20:28:54 -04:00
parent b2e5a178a4
commit 611cc95f2b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 12 additions and 0 deletions

12
docs/exit-setup.md Normal file
View File

@ -0,0 +1,12 @@
to configure lokinet to be an exit add into `lokinet.ini` `[network]` section the following:
exit=true
keyfile=/var/lib/lokinet/exit.private
reachable=1
ifaddr=10.0.0.1/16
post setup for exit (as root) given `eth0` is used to get to the internet:
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -s 10.0.0.0/16 -o eth0 -j MASQUERADE