X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Froles%2Fdebian%2Ffirewall%2Ffiles%2Fetc%2Fnetwork%2Ffunctions.phd;h=8d4e865e819f1892ee0ae6388edebe4093aa6781;hb=0b4114547179ea2063b21f558796d6257f656a4d;hp=08f37183f99af308ae327fb47d2946692cc34395;hpb=424c41462e9f4f38fdf666f2180342a8268a95c7;p=ansible.git diff --git a/playbooks/roles/debian/firewall/files/etc/network/functions.phd b/playbooks/roles/debian/firewall/files/etc/network/functions.phd index 08f3718..8d4e865 100644 --- a/playbooks/roles/debian/firewall/files/etc/network/functions.phd +++ b/playbooks/roles/debian/firewall/files/etc/network/functions.phd @@ -56,6 +56,6 @@ start_firewall() { $IPTABLES -A INPUT -p tcp --sport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT $IPTABLES -A INPUT -p tcp --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT - MY_IP=$(ip -o -4 addr show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') + MY_IP=$(ip --oneline -4 address show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') for ip in $MY_IP; do my_ip "$ip"; done }