51b9578bcf3b7fea3fe9c11df5d8e60d2e0af963
_Footer.md
... | ... | @@ -1 +1 @@ |
1 | -Hosted by: [mortzu]([email protected]), [xuu]([email protected]) | Accessible via: [dn42](http://internal.dn42), [tor](http://jsptropkiix3ki5u.onion), [i2p](http://beb6v2i4jevo72vvnx6segsk4zv3pu3prbwcfuta3bzrcv7boy2q.b32.i2p/) |
|
... | ... | \ No newline at end of file |
0 | +[Contact Host](https://xuu.me) | Accessible via: [dn42](http://internal.dn42), [tor](http://jsptropkiix3ki5u.onion), [i2p](http://beb6v2i4jevo72vvnx6segsk4zv3pu3prbwcfuta3bzrcv7boy2q.b32.i2p/) |
|
... | ... | \ No newline at end of file |
howto/openvpn.md
... | ... | @@ -30,4 +30,46 @@ then create a new key and share it with your peer |
30 | 30 | |
31 | 31 | ``` |
32 | 32 | $ openvpn --genkey --secret /etc/openvpn/<PEER_NAME>.key |
33 | +``` |
|
34 | + |
|
35 | +# Example Configuration if one peer has floating ip |
|
36 | + |
|
37 | +## peer with fixed ip |
|
38 | + |
|
39 | +``` |
|
40 | +daemon |
|
41 | +proto <PROTO> |
|
42 | +mode p2p |
|
43 | +dev-type tun |
|
44 | +comp-lzo |
|
45 | +dev <INTERFACE_NAME> |
|
46 | +persist-key |
|
47 | +persist-tun |
|
48 | +float |
|
49 | +port <LOCAL_PORT> |
|
50 | +ifconfig <LOCAL_GATEWAY_IP> <REMOTE_GATEWAY_IP> |
|
51 | +secret /etc/openvpn/<PEER_NAME>.key |
|
52 | +``` |
|
53 | + |
|
54 | +## peer with floating ip |
|
55 | + |
|
56 | +* Notice the local gateway ip of your peer is your remote gateway ip and |
|
57 | + his remote gateway is your local gateway |
|
58 | +* `<REMOTE_HOST>` is the ip address of your peer |
|
59 | +* `<REMOTE_PORT>` is openvpn port, where your peer listen for traffic |
|
60 | + |
|
61 | +``` |
|
62 | +daemon |
|
63 | +proto <PROTO> |
|
64 | +mode p2p |
|
65 | +remote <REMOTE_HOST> |
|
66 | +rport <REMOTE_PORT> |
|
67 | +lport float |
|
68 | +dev-type tun |
|
69 | +dev <INTERFACE_NAME> |
|
70 | +comp-lzo |
|
71 | +persist-key |
|
72 | +persist-tun |
|
73 | +ifconfig <LOCAL_GATEWAY_IP> <REMOTE_GATEWAY_IP> |
|
74 | +secret /etc/openvpn/<PEER_NAME>.key |
|
33 | 75 | ``` |
... | ... | \ No newline at end of file |