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

This will only show your network ip but if you want to know your internet or external ip, then you

$ curl icanhazip.com
216.239.32.10

icanhazip.com is just but one of the site. There are others eg. ident.me etc.

`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
$ nmcli general

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.

If you want to know DNS details and NSlookup.

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