mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-23 12:08:49 +02:00
update hans
This commit is contained in:
parent
5f876b0858
commit
75d9f88d97
@ -20,13 +20,20 @@ hans:
|
|||||||
## Server Setup
|
## Server Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Start Server Program
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
|
# Enable Masquerade (Method A)
|
||||||
|
$ iptables -t nat -A POSTROUTING -s 10.1.2.0/24 -o eth0 -j MASQUERADE
|
||||||
|
|
||||||
|
# Enable Masquerade (Method B)
|
||||||
|
$ firewall-cmd --add-masquerade
|
||||||
```
|
```
|
||||||
|
|
||||||
## Client Setup
|
## Client Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run Client Program
|
# Start Client Program
|
||||||
$ hans -f -c 1.2.3.4 -p password
|
$ hans -f -c 1.2.3.4 -p password
|
||||||
|
|
||||||
# Access Server Directly
|
# Access Server Directly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user