|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: |
#!/bin/sh
set -x
exec >/tmp/iptables-filter-mintec.out 2>&1
# Set up a firewall: drop all incoming UDP & connects except DNS UDP:-
#Don't set up these rules twice
/usr/sbin/iptables -L -n|grep ppptab >/dev/null ||
{
# A chain to log & drop a packet, except don't log FIN pkts
/usr/sbin/iptables -N logdrop
/usr/sbin/iptables -A logdrop -p tcp -m tcp --tcp-flags FIN FIN -j DROP
# Comment out logging if too much stuff gets logged
/usr/sbin/iptables -A logdrop -j LOG --log-level debug
/usr/sbin/iptables -A logdrop -j DROP
# A chain to inspect incoming (to this box) packets from ppp connection
/usr/sbin/iptables -N ppptab
# Allow icmp but not too many
/usr/sbin/iptables -A ppptab -p icmp -m limit --limit 5/second -j ACCEPT
# Allow DNS replies and queries
/usr/sbin/iptables -A ppptab -p udp --source-port 53 -j ACCEPT
/usr/sbin/iptables -A ppptab -p udp --destination-port 53 -j ACCEPT
# Allow reply packets to an outbound telnet
/usr/sbin/iptables -A ppptab -p tcp --source-port 23 -j ACCEPT
# Drop everything else
/usr/sbin/iptables -A ppptab -j logdrop
# Firewall rule - check incoming (to this box) packets from ppp connection
/usr/sbin/iptables -A INPUT -i ppp0 -j ppptab
/usr/sbin/iptables -A INPUT -i eth1 -j ppptab
}
|
Advertisement
| Hall of Fame |