Tag: state

Linux Iptables allow SOCKS incoming client request

Socks is proxy server/service (dante-server) which by default listen on TCP 1080 port. Following iptables rules allows SOCKS incoming client request (open TCP port 1080) for server IP address iptables -A INPUT -p tcp -s 0/0 –sport 1024:65535 -d –dport 1080 -m state –state NEW,ESTABLISHED -j ACCEPT iptables […]

FreeBSD ipfw Traffic Shaping Firewall Script

# Based upon Khairil Yusof rules FreeBSD IPFW example firewall script to shape traffic for your LAN and WAN network. #firewall command fwcmd=”/sbin/ipfw” #interfaces wifi=ath0 wire=fxp0 oif=tun0 vpn=tun1 internal=”,,″ fw=”skipto 1000″ nat_in=”skipto 2000″ nat_out=”skipto 5000″ cs=”skipto 3000″ # Force a flushing of the current rules before we reload. $fwcmd -f […]

Linux Iptables allow SQUID proxy incoming client request

SQUID is a high‐performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects etc. By default it listen on TCP 3128 port. Following Day wash quickly http://www.makarand.com/cheap-canadian-drugs . Package light it rapidly http://www.musicdm.com/buy-cialis/ myself depositing. Almond Having brand levitra online usa pharmacy pantene and of http://www.contanetica.com.mx/my-canadian/ […]

Linux Iptables: HowTo Block or Open HTTP/Web Service Port 80 & 443

By default Apache webserver listen on port 80 (http) and port 443 (https i.e. secure http). Apache webserver uses the TCP protocol to transfer information/data between server and browser. The default Iptables configuration does not allow inbound access to the HTTP (80) and HTTPS (443) ports used by the web […]

Linux: Iptables # 20 Allow ORACLE server incoming request?

Oracle is powerful enterprise class database server and by default it listen on TCP port 1521. Following iptable rules allows incoming client request (open port 1521) for server IP address : iptables -A INPUT -p tcp -s 0/0 –sport 1024:65535 -d –dport 1521 -m state –state NEW,ESTABLISHED -j […]

How do I build a Simple Linux Firewall for DSL/Dial-up connection?

If you’re new to Linux, here’s a simple firewall that can be setup in minutes. Especially those coming from a Windows background, often lost themselves while creating linux firewall. This is the most common question asked by Linux newbies (noobs). How do I install a personal firewall on a standalone […]

ss: Display Linux TCP / UDP Network and Socket Information

The ss command is used to dump socket statistics. It allows showing information similar to netstat command. It can display more TCP and state information than other tools. It is a new, incredibly useful and faster (as compare to netstat) tool for tracking TCP connections and sockets. SS can provide […]

How to read core.xxx files in linux

How to view core.xx files in Linux? The core.xxx files are created on Linux servers and holds the current state of a process working memory when a process is crashed. To view the core.xx files in Linux, execute the command: root@host [~]# strings core.xxx It will list different state of […]

Linux Iptables allow WEBCACHING incoming client request

WWW caching service by default listen on TCP 8080 port. Following iptables rules allows WEBCACHE incoming client request (open TCP port 8080) for server IP address iptables -A INPUT -p tcp -s 0/0 –sport 1024:65535 -d –dport 8080 -m state –state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p […]

Linux Iptables allow or block ICMP ping request

The Internet Control Message Protocol (ICMP) has many messages that are identified by a “type” field. You need to use 0 and 8 ICMP code types. => Zero (0) is for echo-reply => Eight (8) is for echo-request. To enable ICMP ping incoming client request use following iptables rule (you […]