ports
This commit is contained in:
parent
7414f370c0
commit
5de46c126c
@ -36,4 +36,4 @@ def generate_unique_random():
|
||||
return rand_num
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("Unique random number: " + str(generate_unique_random()))
|
||||
print(str(generate_unique_random()))
|
||||
|
@ -90,6 +90,10 @@ gta-max() {
|
||||
lxc launch --project $random -p default gta-server $random-gta-max --network vn-$random --config limits.cpu=4 --config limits.memory=4096MiB > /dev/null
|
||||
}
|
||||
|
||||
# Setup VPN
|
||||
vpn_port=`python3 /opt/thekube/gen_ports.py`
|
||||
lxc config device add ${random} udp$vpn_port proxy listen=udp:0.0.0.0:$vpn_port connect=udp:127.0.0.1:51820
|
||||
|
||||
# Generate docker compose file
|
||||
#echo $random > /tmp/$random-random
|
||||
#export VAR=`cat /tmp/$random-random`
|
||||
|
Loading…
Reference in New Issue
Block a user