1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps-admin.git synced 2025-03-09 15:40:05 +00:00
This commit is contained in:
Ycarus 2019-04-19 19:53:13 +00:00
parent 56894bd463
commit d688cab92f

View file

@ -63,7 +63,7 @@ def shorewall_port(port,proto,name):
for line in f:
if not '# OMR open ' + name + ' port ' + proto in line:
n.write(line)
n.write('ACCEPT net $FW ' + proto + ' ' + port + ' # OMR open ' + name + ' port ' + proto)
n.write('ACCEPT net $FW ' + proto + ' ' + port + ' # OMR open ' + name + ' port ' + proto + "\n")
os.close(fd)
move(tmpfile,'/etc/shorewall/rules')
os.system("systemctl -q reload shorewall")