Linux Mint 18 2 Firewall Shell Commands & Scripts

View previous topic View next topic Go down

Linux Mint 18 2 Firewall Shell Commands & Scripts

Post by jamied_uk on 13th July 2017, 00:53





Code:
#!/bin/bash
sudo apt install -y ufw
# sudo ufw disable
# sudo ufw enable
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Linux Mint 18 2 Firewall Shell Commands & Scripts

Post by jamied_uk on 13th July 2017, 01:04

Grep For Grep Linux Commands To Find Active Samba Listening Ports







Code:
sudo netstat -tulpn | egrep "samba|smbd|nmbd|winbind"
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Linux Mint 18 2 Firewall Shell Commands & Scripts

Post by jamied_uk on 13th July 2017, 02:28




jnet.forumn.biz/t1366-bash-menu-options-selections-linux-example?highlight=quick+easy+menu


options.sh

Code:
#!/bin/bash
#
# Example
# ./options.sh
#
select fname in *;
do
    echo you picked $fname \($REPLY\)
    ./$fname
    break;
done


# sudo ufw disable


firewall.sh


Code:
#!/bin/bash
#
# Example:
# ./firewall.sh
#
# sudo apt install -y ufw
# sudo ufw disable
# sudo ufw enable

sudo ufw status
# sudo ufw disable
# sudo ufw enable


sudo netstat -tulpn | egrep "samba|smbd|nmbd|winbind"
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Linux Mint 18 2 Firewall Shell Commands & Scripts

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum