Difference between revisions of "/etc/openvpn/server.conf"
Jump to navigation
Jump to search
(8 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 | ||
Line 7: | Line 8: | ||
;[[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 "route 8.89.90.203 255.255.255.255 [[vpn_gateway]] 1" | ||
− | + | ||
push "[[dhcp-option]] [[DNS]] 1xx.xx.x.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]] | [[dev tun]] | ||
− | + | * [[/etc/openvpn/server/]] | |
− | + | * <code>[[net.ipv4.ip_forward]]</code> | |
== See also == | == See also == |
Latest revision as of 16:26, 18 December 2023
/etc/openvpn/server.conf cat /etc/openvpn/server.conf | grep -v "#" | grep .
- Example file:
zcat /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz
- Example file: https://github.com/OpenVPN/openvpn/blob/master/sample/sample-config-files/server.conf
port 1194 ;push "route 192.168.10.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
Related[edit]
push all ipv4 traffic through vpn proto udp dev tun
See also[edit]
- OpenVPN, Tunnelblick, OpenVPN Connect,
.ovpn
, CRL,systemctl status openvpn
,/var/log/openvpn.log
,/lib/systemd/system/openvpn.service
,systemctl status openvpn-server@server
,/etc/openvpn/
,/etc/openvpn/server.conf
,/etc/pam.d/openvpn
,/etc/openvpn/users
,openvpn --help
, OpenVPN changelog, Pritunl, tunl0 - VPN: IPsec (Openswan), OpenVPN, Forticlient, GlobalProtect (PAN-OS), WireGuard (Linux Kernel), Tailscale, PulseSecure, WebVPN, SoftEther, ESP, IKE, AWS VPN, Zerotier, VPN client, Pritunl, GCP Cloud VPN, Mesh virtual private network, Mullvad
Advertising: