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

From wikieduonline
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
*<code>[[/etc/openvpn/]]server.conf</code>
+
[[/etc/openvpn/]]server.conf
 +
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
  
*<code>port 1194</code>
+
[[port]] [[1194]]
 
+
;[[push]] "[[route]] 192.168.10.0 255.255.255.0"
*<code>;[[push]] "route 192.168.10.0 255.255.255.0"</code>
+
;push "route 192.168.20.0 255.255.255.0"
*<code>;push "route 192.168.20.0 255.255.255.0"</code>
+
 +
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
  
 +
== 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: