Advertisement
Guest User

Untitled

a guest
Jul 20th, 2021
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. # unless Windows clients v2.0.9 and lower have to
  2. # be supported (then net30, i.e. a /30 per client)
  3. # Defaults to net30 (not recommended)
  4. ;topology subnet
  5.  
  6. # Configure server mode and supply a VPN subnet
  7. # for OpenVPN to draw client addresses from.
  8. # The server will take 10.8.0.1 for itself,
  9. # the rest will be made available to clients.
  10. # Each client will be able to reach the server
  11. # on 10.8.0.1. Comment this line out if you are
  12. # ethernet bridging. See the man page for more info.
  13. server 194.163.135.241 255.255.255.0
  14.  
  15. # Maintain a record of client <-> virtual IP address
  16. # associations in this file. If OpenVPN goes down or
  17. # is restarted, reconnecting clients can be assigned
  18. # the same virtual IP address from the pool that was
  19. # previously assigned.
  20. ifconfig-pool-persist ipp.txt
  21.  
  22. # Configure server mode for ethernet bridging.
  23. # You must first use your OS's bridging capability
  24. # to bridge the TAP interface with the ethernet
  25. # NIC interface. Then you must manually set the
  26. # IP/netmask on the bridge interface, here we
  27. # assume 10.8.0.4/255.255.255.0. Finally we
  28. # must set aside an IP range in this subnet
  29. # (start=10.8.0.50 end=10.8.0.100) to allocate
  30. # to connecting clients. Leave this line commented
  31. # out unless you are ethernet bridging.
  32. ;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
  33.  
  34. # Configure server mode for ethernet bridging
  35. # using a DHCP-proxy, where clients talk
  36. # to the OpenVPN server-side DHCP server
  37. # to receive their IP address allocation
  38. # and DNS server addresses. You must first use
  39. # your OS's bridging capability to bridge the TAP
  40. # interface with the ethernet NIC interface.
  41. # Note: this mode only works on clients (such as
  42. # Windows), where the client-side TAP adapter is
  43. # bound to a DHCP client.
  44. ;server-bridge
  45.  
  46. # Push routes to the client to allow it
  47. # to reach other private subnets behind
  48. # the server. Remember that these
  49. # private subnets will also need
  50. # to know to route the OpenVPN client
  51. # address pool (10.8.0.0/255.255.255.0)
  52. # back to the OpenVPN server.
  53. ;push "route 192.168.10.0 255.255.255.0"
  54. ;push "route 192.168.20.0 255.255.255.0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement