Difference between revisions of "/etc/openvpn/server.conf"

From wikieduonline
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  cat /etc/openvpn/server.conf | grep -v "#" | grep .
 
  cat /etc/openvpn/server.conf | grep -v "#" | grep .
  
 +
* Example file: <code>[[zcat /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz]]</code>
 
* Example file: https://github.com/OpenVPN/openvpn/blob/master/sample/sample-config-files/server.conf
 
* Example file: https://github.com/OpenVPN/openvpn/blob/master/sample/sample-config-files/server.conf
  
  [[port]] 1194
+
  [[port]] [[1194]]
 
  ;[[push]] "[[route]] 192.168.10.0 255.255.255.0"
 
  ;[[push]] "[[route]] 192.168.10.0 255.255.255.0"
 
  ;push "route 192.168.20.0 255.255.255.0"
 
  ;push "route 192.168.20.0 255.255.255.0"
 +
 +
push "route 8.89.90.203 255.255.255.255 [[vpn_gateway]] 1"
 +
 +
push "[[dhcp-option]] [[DNS]] 1xx.xx.x.1"
 +
 +
[[dev tun]]
 +
 +
[[max-clients]] 100
  
  push "route 8.89.90.203 255.255.255.255 vpn_gateway 1"
+
== Related ==
 +
  [[push]] all ipv4 traffic through vpn
 +
[[proto udp]]
 +
[[dev tun]]
 +
* [[/etc/openvpn/server/]]
 +
* <code>[[net.ipv4.ip_forward]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 16:26, 18 December 2023

Advertising: