5 avg. rating (100% score) - 1 votes
If you have knowledge and experience in Linux administration, then you can look for an Iptables job. An Iptables job will enable you to set up, maintain and check the tables of IP protocol filter rules which are provided by the Linux Kernel firewall. As a system administrator you will be able to manage the incoming and outgoing traffic by using a set of table rules. If you have good knowledge of Linux but you don’t know where to search for a job, then you can browse the wisdomjobs page to search for your desired job. Here we make your job easy, by providing you with the latest list of all the Iptables jobs, from which you can choose based on your skills, qualification and experience. We have also provided a set of Iptables job interview questions and answers, which will help you to crack your dream job confidently.
iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Different kernel modules and programs are currently used for different protocols; iptables applies to IPv4, ip6tables to IPv6, arptables to ARP, and ebtables to Ethernet frames.
# service iptables save
# service iptables stop
# chkconfig iptables off
Fedora Linux you can use following commands to save and restore firewall rules. To Save the rules to /etc/sysconfig/iptables file: # /etc/init.d/iptables save To restore the rules from /etc/sysconfig/iptables file: # /etc/init.d/iptables start If you are using Debian / Ubuntu Linux open /etc/network/interfaces: # vi /etc/network/interfaces Append the line to eth0 section: post-up iptables-restore Close and save the file. Reboot the system.
#iptables-restore < /root/firewall.rules
#iptables-save > /root/firewall.rules
# iptables --list
# iptables -t nat -L
# iptables -t nat -L -n -v | grep 'some-word'
# iptables -t nat -L -n -v
# iptables --flush
# iptables --flush OUTPUT //To delete particular CHAIN
The filter table should be used exclusively for filtering packets. For example, we could DROP, LOG, ACCEPT or REJECT packets without problems, as we can in the other tables. There are three chains built in to this table. The first one is named FORWARD and is used on all non-locally generated packets that are not destined for our local host (the firewall, in other words). INPUT is used on all packets that are destined for our local host (the firewall) and OUTPUT is finally used for all locally generated packets.
Allow incoming packets at interface level
# iptables -A INPUT -i lo -j ACCEPT
# iptables -A INPUT -i eth0 -j ACCEPT
Accept packets from trusted IP addresses:
iptables -A INPUT -s 192.168.0.4 -j ACCEPT # change the IP address as appropriate
Accept packets from trusted IP addresses:
# iptables -A INPUT -s 192.168.0.0/24 -j ACCEPT //using standard slash notation
# iptables -A INPUT -s 192.168.0.0/255.255.255.0 -j ACCEPT // using a subnet mask
Accept tcp packets on destination port 6881 (bittorrent):
# iptables -A INPUT -p tcp --dport 6881 -j ACCEPT
# Accept tcp packets on destination ports 6881-6890
# iptables -A INPUT -p tcp --dport 6881:6890 -j ACCEPT
To list the rules we have on our system use:
# iptables -nL
To flush (drop) all the rules we can use:
# iptables –F
Accept tcp packets on destination port 22 (SSH)
# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
Accept tcp packets on destination port 22 (SSH) from private LAN
# iptables -A INPUT -p tcp -s 192.168.0.0/24 --dport 22 -j ACCEPT
Following are the possible special values that we can specify in the target.
ACCEPT :Firewall will accept the packet.
DROP:Firewall will drop the packet.
QUEUE : Firewall will pass the packet to the userspace.
RETURN : Firewall will stop executing the next set of rules in the current chain for this packet. The control will be returned to the calling chain.
IPTABLES Related Tutorials
IPTABLES Related Interview Questions
|Linux Interview Questions||Red Hat Linux Essentials Interview Questions|
|Red Hat Linux System Administration Interview Questions||Samba Server Interview Questions|
|Linux File Systems Interview Questions||BIND Name Server Interview Questions|
|Postfix Interview Questions||Advanced Linux Interview Questions|
|Sendmail Interview Questions||Squid Proxy Server Interview Questions|
IPTABLES Related Practice Tests
|Linux Practice Tests||Red Hat Linux Essentials Practice Tests|
|Red Hat Linux System Administration Practice Tests||Samba Server Practice Tests|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.