forgot about removal
This commit is contained in:
@@ -40,7 +40,8 @@ export function enqueueNatRemove(ip, port, proto='tcp') {
|
|||||||
info(`NAT DEL ${proto} ${ip}:${port}`);
|
info(`NAT DEL ${proto} ${ip}:${port}`);
|
||||||
await runRouterCmds([
|
await runRouterCmds([
|
||||||
'conf t',
|
'conf t',
|
||||||
`no ip nat inside source static ${proto} ${ip} ${port} interface ${process.env.ROUTER_WAN_IF || 'gi0'} ${port}`,
|
`no ip nat inside source static tcp ${ip} ${port} interface ${process.env.ROUTER_WAN_IF || 'gi0'} ${port}`,
|
||||||
|
`no ip nat inside source static udp ${ip} ${port} interface ${process.env.ROUTER_WAN_IF || 'gi0'} ${port}`,
|
||||||
'end',
|
'end',
|
||||||
'wr mem'
|
'wr mem'
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user