Network stuff

Posted under » Linux » LAMP Security on 13 October 2009

ipconfig is windows in linux the equivalent is "ifconfig -a". However of late, people are using

$ ip a
$ ip address show
$ ip a show wlan0
$ ip a show tun0 #if exist

`ifconfig' is outdated (for instance, it lacks full support for network namespaces), and `ip' is designed for the modern network.

If ip address shows you are not in network, then you should turn network on.

$ nmcli n on // or
$ nmcli networking on

To check ports

$ netstat -an | grep LISTEN
$ netstat -lntup #servers
$ netstat -plant #servers and listen
$ ss -lntu

LDAP connect

$ cp /etc/resolv.conf /etc/resolv.conf.221209    
$ traceroute -In ldap.bii-sg.org 
$ ldapsearch -x -h ldap.bii-sg.com -b ou=people,dc=bii,dc=a-star,dc=edu,dc=sg uid=clebok

Secure your connection with VPN.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data