Selaa lähdekoodia

initial commit of jl-01 configuration for centos7

master
Gitea 5 vuotta sitten
vanhempi
commit
8065b4b86c
6 muutettua tiedostoa jossa 74 lisäystä ja 0 poistoa
  1. +11
    -0
      jl-01/etc/hosts
  2. +16
    -0
      jl-01/etc/systemd/system/soa_http.service
  3. +16
    -0
      jl-01/etc/systemd/system/soa_https.service
  4. +1
    -0
      jl-01/etc/wireguard/privatekey
  5. +1
    -0
      jl-01/etc/wireguard/publickey
  6. +29
    -0
      jl-01/etc/wireguard/wg0.conf

+ 11
- 0
jl-01/etc/hosts Näytä tiedosto

@@ -0,0 +1,11 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

207.148.80.140 soa
139.180.174.191 proxy
10.0.0.4 soaprivate

103.195.6.218 supertraderfx.com www.supertraderfx.com supertraderfx.net
#112.213.35.133 supertraderfx.com www.supertraderfx.com abc.supertraderfx.com abc.com test.com 123.supertraderfx.com
#1.5.6.8 supertraderfx.com www.supertraderfx.com


+ 16
- 0
jl-01/etc/systemd/system/soa_http.service Näytä tiedosto

@@ -0,0 +1,16 @@
[Unit]
Description=Socat soa 80
After=wg-quick@.service
Wants=wg-quick@.service

[Service]
Type=simple
ExecStart=/usr/bin/socat -d -d -lmlocal2 TCP4-LISTEN:8001,bind=175.22.14.240,su=nobody,fork,reuseaddr TCP4:soaprivate:80
User=root
Restart=always
RestartSec=20
TimeoutSec=3

[Install]
WantedBy=multi-user.target


+ 16
- 0
jl-01/etc/systemd/system/soa_https.service Näytä tiedosto

@@ -0,0 +1,16 @@
[Unit]
Description=Socat soa 443
After=wg-quick@.service
Wants=wg-quick@.service

[Service]
Type=simple
ExecStart=/usr/bin/socat -d -d -lmlocal2 TCP4-LISTEN:8002,bind=175.22.14.240,su=nobody,fork,reuseaddr TCP4:soaprivate:443
User=root
Restart=always
RestartSec=20
TimeoutSec=3

[Install]
WantedBy=multi-user.target


+ 1
- 0
jl-01/etc/wireguard/privatekey Näytä tiedosto

@@ -0,0 +1 @@
aL823LKKh+I1VO0ohkQOq6e/RxkuEul84Elk57NTf3o=

+ 1
- 0
jl-01/etc/wireguard/publickey Näytä tiedosto

@@ -0,0 +1 @@
QA+OnRilwqWcNJkH+s9tEreO07vejqyU1WhaHAt+aWU=

+ 29
- 0
jl-01/etc/wireguard/wg0.conf Näytä tiedosto

@@ -0,0 +1,29 @@
[Interface]
Address = 10.0.0.1/24
Address = fd86:ea04:1115::1/64
Address = fe80::b028:6113:848c:2429/64
Address = fe80::8bcf:d2c9:b9d5:403e/64
Address = fe80::576:ea45:9a34:b0d0/64
Address = fe80::33:1512:7608:6fff/64
Address = fe80::72a4:1c42:f5e0:7e9f/64
Address = fe80::dd9e:3dec:caaa:faae/64
Address = fe80::46be:2df8:9ffe:c836/64
Address = fe80::e450:f367:5ffa:59e4/64
Address = fe80::df6b:9792:c2b0:8f70/64
Address = fe80::8a03:aff3:d79:4eeb/64
SaveConfig = true
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 51820
PrivateKey = aL823LKKh+I1VO0ohkQOq6e/RxkuEul84Elk57NTf3o=

[Peer]
PublicKey = h/V6AmQ9Aaxxnk4CT3bk8auTHk240M1dak/diKeJ1Xw=
AllowedIPs = 10.0.0.2/32
Endpoint = 115.64.88.12:47002

[Peer]
PublicKey = 0PdP/NjrCvVBpDEhu0wQ1gWYTLDyQy6xyqWElnmsSxs=
AllowedIPs = 10.0.0.4/32
Endpoint = 207.148.80.140:54282


Loading…
Peruuta
Tallenna