sulhaq Posted October 28, 2007 Share Posted October 28, 2007 Hello. I'm trying to use the "iptables" command in terminal in leopard. It keeps saying "command not found" to me. I'm not much good at the UNIX command line could someone help please? This is the command i'm using: "iptables -A INPUT -p tcp –dport $PORT –tcp-flags RST RST -j DROP Link to comment Share on other sites More sharing options...
Headrush69 Posted October 28, 2007 Share Posted October 28, 2007 man ipfw similar tool to do the same thing. Although I haven't used it, this: http://personalpages.tds.net/~brian_hill/brickhouse.html is supposably a GUI to editing the rules. Edit: And another useful link for working with firewall rules on OS X: http://www.macdevcenter.com/pub/a/mac/2005...5/firewall.html Link to comment Share on other sites More sharing options...
manitoba98 Posted October 28, 2007 Share Posted October 28, 2007 iptables accesses a module in the Linux kernel, so it doesn't work in OS X. As Headrush69 already mentioned, ipfw is the comparable tool. Link to comment Share on other sites More sharing options...
sulhaq Posted October 29, 2007 Author Share Posted October 29, 2007 Can someone provide me a command that would be equivalent to the "iptables" command I posted but using "ipfw" instead please? EDIT: I found a command for ipfw. Would this work? "ipfw add drop tcp src-port (port_name) tcpflags rst" However when I run this terminal tells me ipfw: missing ``from'' Link to comment Share on other sites More sharing options...
Recommended Posts