IPTable - Configuration Examples
Purpose
Here are some additional iptables config files:
Examples
Restrict SSH Access to Campus Network
This file is similar to the iptables.base example, but set up to only allow SSH connections from the Campus Network
In order to access it from the Campus Wireless or off Campus, you will need to use the Campus VPN.
Restrict a port to only your lab subnet
This is an example of how to restrict a port to a subnet
This example only puts in one port allowance, but multiple lines can be put in to allow others.
The important part here is limiting the access to the port in question to the subnet the lab is in, as most projects don't need to have the port fully open to the world if possible.
This, however, should not exclude the fact that any service running should not have some form of authentication with this up.
Having the Firewall restricting access to the port will mitigate other vulnerabilities some services may have even with authentication in place.
Related articles