|
2008-03-14
, 12:06
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#42
|
|
2008-03-14
, 12:54
|
Posts: 31 |
Thanked: 0 times |
Joined on Dec 2007
|
#43
|
Xooh:
What I was arguing against was your claim that you would be vulnerable even without a server listening on the port in question. That's simply not true.
|
2008-03-14
, 12:57
|
Posts: 566 |
Thanked: 150 times |
Joined on Dec 2007
|
#44
|
|
2008-03-14
, 13:21
|
Posts: 31 |
Thanked: 0 times |
Joined on Dec 2007
|
#45
|
The tablets have iptables. That basically is firewall if you configure rules with it.
# Clear any existing firewall stuff before we start iptables --flush # As the default policies, drop all traffic iptables --policy INPUT DROP iptables --policy OUTPUT ACCEPT iptables --policy FORWARD ACCEPT # iptables -A INPUT -i wlan0 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -i ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT # openvpn iptables -A INPUT -p all -s 10.8.0.0/24 -j ACCEPT # local iptables -A INPUT -p all -s 127.0.0.1 -j ACCEPT # SSH iptables -A INPUT -p tcp --dport 22 -j ACCEPT
# Accept all incoming traffic associated with an established # connection, or a "related" connection iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
/home/user # iptables -A INPUT -i wlan0 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables v1.2.11: Couldn't load match `state':/lib/iptables/libipt_state.so: cannot open shared object file: No such file or directory Try `iptables -h' or 'iptables --help' for more information. /home/user # iptables -A INPUT -i ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables v1.2.11: Couldn't load match `state':/lib/iptables/libipt_state.so: cannot open shared object file: No such file or directory Try `iptables -h' or 'iptables --help' for more information.
TA-t3 : on my N810, with netstat -antu (u stands for UDP, which you missed), I get :
111 (tcp, udp) (see below)
53 (tcp, udp) (see below)
22 (SSH, and YES, I know how to secure SSH... AllowUsers and so on; I also have openvpn, and I know how to use it)
* "For example, port 111 is assigned a stand-alone portmapper service not required for most e-mail servers.The portmapper service, which is technically part of the Sun Remote Procedure Call (RPC) service, runs on server machines and assigns port numbers to RPC packets, such as NIS and NFS packets."
I guess it's because I installed WizardMounter, which helps to mount CIFS (samba) and NFS shares.
(http://www.governmentsecurity.org/archive/t1695.html, after a quick googleing)
* Port 53 (tcp) is used for DNS (search DNS attacks in G.)
Should I remove the DNS system from my tablet or prevent it from working properly ?
(see : http://www.hackinglinuxexposed.com/a.../20030703.html)
Ohh : thanks to that page, I think I just discover why my simple FW (ported from my server) was not working; if I get it to work, I'll post it here.
So...
Just knowing what is running on your tablet or shutting it off has nothing to do with network security. It's like stopping crossing roads because they're cars out there...
Each serious sysadmin will tell you that only firewalls, reverse proxies and apps properly written can protect you from the outside world.
Now : for those who think I like to live in a "secure buble" and take no risk in life, I ride a motorbike (every day in huge traffic, on holidays, under rain and sometimes in snow) and I'd like my young daughter to do the same -if she enjoys it-, I go skiing on glacier, etc, etc.
Taking risks (in life, in general) does not mean you do not want to know them, evaluate them and to adapt your behaviour to them.
Again : I really do not want to argue. I'm just proposing, offering my contribution, if someone more comfortable with the N8x0 wants to build a FW with me.
(for me it's a matter of kernel modules / iptables hacking or twicking)
cheers,
XooH