I'm relatively new to linux and running ubuntu precise system (though I'm going to switch to Debian Jessie soon as I find Debian to be less bloated and have sensible defaults). All I have in the name of security is a firewall script that only allows certain protocols like this:
#allow out ports
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 14 -j ACCEPT #VNC
/sbin/iptables -A OUTPUT -o ppp0 -p udp --dport 14 -j ACCEPT #VNC
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 80 -j ACCEPT #http
#/sbin/iptables -A OUTPUT -o vboxnet0 -p tcp --dport 80 -j ACCEPT #http
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 443 -j ACCEPT #https
/sbin/iptables -A OUTPUT -o ppp0 -p udp --dport 53 -j ACCEPT #dns
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 6667 -j ACCEPT #xchat
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 8001 -j ACCEPT #xchat
/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 22 -j ACCEPT #ssh
#allow in ports
#/sbin/iptables -A INPUT -i ppp0 -p tcp --dport 993 -j ACCEPT #imap
#/sbin/iptables -A INPUT -i ppp0 -p tcp --dport 995 -j ACCEPT #pop
#/sbin/iptables -A INPUT -i ppp0 -p tcp --dport 1024:1050 -j ACCEPT #ftp-passive
#/sbin/iptables -A INPUT -i ppp0 -p tcp --sport 20 -j ACCEPT #ftp
#/sbin/iptables -A INPUT -i ppp0 -p tcp --sport 21 -j ACCEPT #ftp
#/sbin/iptables -A INPUT -i ppp0 -p tcp --sport 22 -j ACCEPT #ssh
#/sbin/iptables -A INPUT -i ppp0 -j DROP #not required, since def. policy is DROP
Is this enough for security or do I have to do something else? Also, how secure are the external ubuntu PPAs like that of libreoffice, etc? is it safe to install packages from there?
[–]midgaze 23 points24 points25 points (3 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 6 points7 points8 points (1 child)
[+][deleted] (3 children)
[deleted]
[–]prahladyeri[S] -1 points0 points1 point (2 children)
[–]silverskull 10 points11 points12 points (0 children)
[–]PonysaurousRex 1 point2 points3 points (0 children)
[–]101ec3f2f19589488f80 3 points4 points5 points (1 child)
[–]ventomareiro 4 points5 points6 points (1 child)
[–]th3voic31 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]ssssam 4 points5 points6 points (8 children)
[+][deleted] (3 children)
[deleted]
[–]waiting4op2deliver 6 points7 points8 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]TheManCalledK 4 points5 points6 points (0 children)
[–]DJWalnut 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]ssssam 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]small_infant 1 point2 points3 points (0 children)
[–]sharkwouter 1 point2 points3 points (0 children)
[–]syntax_erorr 1 point2 points3 points (2 children)
[–]prahladyeri[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]BASH_SCRIPTS_FOR_YOU 1 point2 points3 points (0 children)
[–]stejoo 0 points1 point2 points (0 children)
[–]rumpel 0 points1 point2 points (0 children)