I'm not clear on why you wouldn't just look at the current router's port forwarding list and copy it to the new router.Currently, I forward one port, so that's not any help. While I'm sure that I'd remember the basics (port 80, etc.), I'm looking to catch anything going out that I wouldn't normally think of (like, say, a game I only play once a week, or something like a Last.fm reporter, etc.).
Home gateway firewalls that block outbound traffic are misconfigured, in my opinion. Least annoyance and perfectly adequate security is obtained by using a stateful firewall that allows all outbound connections but blocks all inbound traffic except that associated with outbound connections or explictly forwarded to an internal server.Okay - this might be where I'm dropping the ball on my own understanding, and its becoming clear to me that I might have been inelegant in phrasing my first question. First, just so we're all clear, I know what the router does, and I understand port forwarding, etc, for things on my network (VPN Server, Apache Server, etc.). I've always just made sure that whatever router I'm using had its normal firewall on, and that's seemed to be sufficient.
Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere DROP tcp -- anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywhere tcp dpt:228 state NEW ACCEPT tcp -- anywhere anywhere tcp dpt:http state NEW ACCEPT tcp -- anywhere anywhere tcp dpts:afs3-fileserver:7500 state NEW Chain FORWARD (policy DROP) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhereThe third rule in the INPUT section and the only rule in the OUTPUT section are required to implement this "normal" behaviour of allowing outbound connections and the data sent "back" in response to them.
You are not logged in, either login or create an account to post comments
man netstatYou could use
perlor any number of scripting languages withcronto periodically parse the results ofnetstatfor port usage associated with "foreign address" data.posted by Blazecock Pileon at 11:47 AM on March 19