I'd like to allow mail through iptables and DROP policy but this script doesn't work what it is wrong here:
## FLUSH de reglas
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
## policy
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
# localhost
iptables -A INPUT -i lo -j ACCEPT
# Allow my ip
iptables -A INPUT -s MY_IP -j ACCEPT
# 80 port
iptables -A I
i'd like to basically drop all packets, but still allow port 22, 80 and 52533. ATM this firewall doesn't allow pinging, or for me to use yum update. How can I add that? Thanks for advice. Also is there an easier way to open port 80?
I'm just wondering is there an easy way to drop packets on RHEL 6.3 without using the iptables command?
I'm looking for an alternative to this:
iptables -A INPUT -p tcp --dport 1234 -j DROP
Many thanks!
I am setting up a new squid daemon to run on my server. I want to make sure that everyone inside my network can access squid but I want to make sure everyone on the internet is blocked.
I'm having trouble running iptables using RHEL 6.3.
iptables -A INPUT -p tcp --dport 1234 -j DROP
iptables v1.4.7: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Heres my version of RHEL.
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
And the kernal version.
una
I'm trying to add a iptables rule in order to drop any incoming packets except those from a specific IP. Following the manual, I try to run this:
> iptables -t filter -I INPUT -s !12.34.56.78 -p tcp -j DROP
but I get this error:
iptables v1.4.12.1: host/network `!12.34.56.78' not found
The manpages say for -s / --src / --source parameter ...
I have these drop rules:
iptables -t mangle -P FORWARD DROP
iptables -P FORWARD DROP
iptables -t mangle -P INPUT DROP
iptables -P INPUT DROP
iptables -t mangle -P OUTPUT DROP
iptables -t nat -P OUTPUT DROP
iptables -P OUTPUT DROP
iptables -t nat -P PREROUTING DROP
iptables -t mangle -P PREROUTING DROP
iptables -t nat -P POSTROUTING DROP
iptables -t mangl
I need to hack the OS X pf to redirect all ssh connections from an user to this machine.
I've setup IPTables with the following script...