You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # vpnwrap
  2. scripts for doing things
  3. it runs a thing in a separate net namespace with only a vpn's network interface
  4. so it's literally impossible for it to access the outside world, but it also
  5. opens a single port into the program from your local machine so that you can
  6. still talk to it for like rpcs or whatever
  7. you'll probably have to modify these for your own setup, but I put everything
  8. in vars at the top of scripts so it's not too hard, just search for `CONFIG:`
  9. and then comment out the `exit 1` if there is one
  10. * mostly in config.txt
  11. * some things in transmissionwrap.sh
  12. * take a look at natfwd.sh in case you need to change anything there
  13. ## dependencies
  14. * iptables
  15. * ufw
  16. * transmission
  17. * openvpn
  18. * bash I guess
  19. ## installation
  20. I set most this up on `/opt/vpnwrap` so the systemd services are written
  21. assuming that, but once you create the dirs for everything it's fairly easy
  22. make sure you download config files for your vpn, and configure it for those
  23. the only other thing to remember is to deal with the dns resolver config, since
  24. in a net namespace glibc doesn't use `/etc/resolv.conf`
  25. add this to `/etc/netns/vpnns/resolv.conf` (or whatever) to fix that
  26. ```
  27. nameserver 208.67.222.222
  28. nameserver 208.67.220.220
  29. ```