Going the Python way and adding config.json
This commit is contained in:
parent
ea9e66a8b2
commit
78d18f7e6e
3 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
config.json
|
||||
2
main.py
Normal file
2
main.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/python3
|
||||
import miniupnpc
|
||||
10
port-forwarder.sh
Executable file
10
port-forwarder.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Checking if miniupnpc is installed
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y miniupnpc
|
||||
|
||||
# Opening the ports
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue