You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-11-25 22:22:29 +02:00
update dns
This commit is contained in:
9
openvpn/arm/data/dnsmasq.conf
Normal file
9
openvpn/arm/data/dnsmasq.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
interface=wlan0
|
||||
no-hosts
|
||||
no-resolv
|
||||
cache-size=10000
|
||||
server=8.8.8.8#53
|
||||
server=8.8.4.4#53
|
||||
dhcp-range=192.168.31.10,192.168.31.20,1h
|
||||
dhcp-option=3,192.168.31.1
|
||||
dhcp-option=6,192.168.31.1
|
||||
26
openvpn/arm/data/pi.ovpn
Normal file
26
openvpn/arm/data/pi.ovpn
Normal file
@@ -0,0 +1,26 @@
|
||||
client
|
||||
nobind
|
||||
dev tun
|
||||
remote-cert-tls server
|
||||
remote 127.0.0.1 1194 tcp
|
||||
route 1.2.3.4 255.255.255.255 net_gateway
|
||||
route 192.168.0.0 255.255.0.0 net_gateway
|
||||
|
||||
<key>
|
||||
-----PRIVATE KEY-----
|
||||
</key>
|
||||
|
||||
<cert>
|
||||
-----CERTIFICATE-----
|
||||
</cert>
|
||||
|
||||
<ca>
|
||||
-----CERTIFICATE-----
|
||||
</ca>
|
||||
|
||||
<tls-auth>
|
||||
-----OpenVPN Static key V1-----
|
||||
</tls-auth>
|
||||
|
||||
key-direction 1
|
||||
redirect-gateway def1
|
||||
@@ -19,3 +19,12 @@ stunnel:
|
||||
extra_hosts:
|
||||
- server:1.2.3.4
|
||||
restart: always
|
||||
|
||||
dnsmasq:
|
||||
image: easypi/dnsmasq-arm
|
||||
volumes:
|
||||
- ./data/dnsmasq.conf:/etc/dnsmasq.d/dnsmasq.conf
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
net: host
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user