siotp/sisr1/tp06_firewall/test_firewall.sh
2025-05-05 09:08:37 +02:00

8 lines
258 B
Bash

#!/bin/bash
ipfirewall=192.168.0.160
dir=/root/firewall
ruleset=current_ruleset.nft
scp $ruleset root@$ipfirewall:$dir/$ruleset
scp current_ruleset.nft root@$ipfirewall:/root/firewall/current_ruleset.nft
ssh root@$ipfirewall "bash $dir//refresh_firewall.sh"