Thursday, September 17, 2009

Adding a port to firewall

iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 5432 -j ACCEPT

To Delete the Virtual Box :

VBoxDeleteIF vbox0
VBoxDeleteIF vbox1

To List the Bridge connection in Linux

brctl show

Down the bridge connection

ifconfig br0 down

To list the networkconfiguration

cmd : ifconfig

Edit the DNS Configuration for linux

vi /etc/resolv.conf

To make Ethernet configuration up

ifconfig eth0 up (Or) ifup eth0

Adding subnet mask ,default gateway

route add -net 10.10.16.0 netmask 255.255.240.0 eth0

Adding bridge connection

VBoxAddIF vbox0 root br0

To remove the default gateway

route del default gw
route add default gw


To list the port

netstat -tulpn | less

To check the process runnning on linux

ps -aux

No comments:

Post a Comment