Answer» I'm running into some issues with iptables. I cannot see why.
basically I'm using iptables -A INPUT -s X.X.X.X -j ACCEPT to only accept PACKETS from X ip. ( about 20 entries ) When I have put in the IP's I need. I put iptables -A INPUT -j DROP iptables -A OUTPUT -j DROP
But iptables -A OUTPUT -j DROP Kills my SSH connection and then I can no longer connect. I have to flush iptables via rescue mode.
What Am I doing WRONG?Found what I was doing wrong. iptables -A OUTPUT -j DROP would break my connection because I didn't ADD a rule to iptables to accept outbound traffic from my ip I don't know. Can you be specific as to what Unix or Linux you have? And what tools are you using. Is this on a LAN or are you WORKING with IPs from the Internet. If Internet, in what region are you located?
Does this relate to lyu work? http://www.cyberciti.biz/tips/linux-iptables-examples.html
|