![]() Iptables -A INPUT -p ALL -d 192.168.1.10 -m state -state ESTABLISHED,RELATED -j ACCEPT # (i) Packets for established connections ![]() # (B) Rules for incoming packets from the Internet Iptables -A INPUT -p ALL -i lo -s 192.168.1.10 -j ACCEPT Iptables -A INPUT -p ALL -i lo -s 192.168.10.10 -j ACCEPT Iptables -A INPUT -p ALL -i lo -s 127.0.0.1 -j ACCEPT # (A) Rules for incoming packets from the LAN Iptables -A okay -p tcp -m state -state ESTABLISHED,RELATED -j ACCEPT # (2) User-defined chain called "okay" for ACCEPTed TCP packets # Create log files to help troubleshooting. # Define our interfaces, Squid IP, and Squid port ![]() # A script for creating an iptables firewall After all, it's all built from knowledge gained from my own searches! I'm including the entire script in hopes it helps someone else, even if unrelated to my question. Section 6 is where I'm attempting to insert the rule. It is workning on my Fedora 20 box with 2 network cards. ![]() Here is the current script I use to edit my IP Tables configuration. ![]() But I don't want a hacker to operate my TV, so I'd like to block the IP address assigned to the harmony remote with my IP Tables firewall. I can also control it with my iPad over the local network. For instance, I use a Logitech Harmony remote to control my stereo, satellite, and TV with 1 button. With the increase of appliances having network access and the potential for hacking, I want to block specific ip address from accessing the internet, but allow LAN access. ![]()
0 Comments
Leave a Reply. |