2020-08-11 00:28:54 +00:00
|
|
|
|
2020-11-02 13:17:06 +00:00
|
|
|
to configure lokinet to be an exit add into `lokinet.ini`:
|
2020-08-11 00:28:54 +00:00
|
|
|
|
2020-11-02 13:17:06 +00:00
|
|
|
[router]
|
|
|
|
min-connections=8
|
|
|
|
max-connections=16
|
|
|
|
|
|
|
|
[network]
|
2020-08-11 00:28:54 +00:00
|
|
|
exit=true
|
|
|
|
keyfile=/var/lib/lokinet/exit.private
|
|
|
|
reachable=1
|
|
|
|
ifaddr=10.0.0.1/16
|
2021-09-12 15:07:10 +00:00
|
|
|
hops=2
|
2020-11-02 13:17:06 +00:00
|
|
|
paths=8
|
|
|
|
|
2020-08-11 00:28:54 +00:00
|
|
|
|
|
|
|
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
|