|
Table of Contents
Outgoing FirewallIn here you have the option, to control the connections from the inside (LAN and from IPFire) to the outside ( WAN ). It is possible to allow, to prohibit and to regulate both. The “Outgoing Firewall” of the Webgui offers 3 different modes to adjust your outgoing network traffic. First, it is important to consider which mode you used: Modes of the Outgoing Firewall
Add ruleIn Mode 1 or 2, two different areas will be opened by a click on the button “Add Rule”, in here the IPTables rules can be edited or added: In the first menu “add rule” you can specify your custom IPTable rules via the GUI of the webinterface, in here it is also possible to modify created rules subsequently. Grafical example of Mode 2 (Deny Rule):
In the field “source IP or Net”, individual IPs can be placed, with for example 192.168.0.2. Also whole subnets like 192.168.0.0/24 can be registered. In the field “Source MAC Address” the hardware address of the network adapter takes place outlined in a pair of numbers separated by a ” : ”(colon/double dot) for example 08:00:20:ae:fd:7e
It can contain individual ports such as 80 , or possibly all ports 0:65535 (ranges will be separated with a double dot). Use the comma for multiple ports in a rule eg 587,993,995,465 (examples for imaps, pop3s and smpts) which also not have to follow then in a numerical order to each other (different to ranges).
*Time = The rules can be activated during a specific time (From To), but also to different days a week. From 0:00 to 0:00 is around the clock quick addSince there are 65535 ports, and each service uses special ports with different protocols, it is not always easy to have all the specifications in mind. In IPFire the main IPTable rules are predefined and deposited. Over the “quick add” menu the rules can be modified with a lesser extent as under the above explained “add rule” menu (but subsequently re-editable over “add rule” if necessary) and by clicking on the red pin under “Action” the rule is already added. Shortened extract from quick add: p2p-block
The p2p-block is only in Mode 1 or 2 available
In addition to this you even can use the options to block well known p2p (filesharing) connections. This is very useful if you want to … let your neighbor use your wireless connection, but you don’t want him to do some illegal filesharing, thereby wasting your bandwidth! Here are some little examplesOne could use the following services:
A graphic example of a possible basic configuration: If the Clients shall surf only through the webproxy
To use this configuration, the “Outgoing Firewall” needs to operate in “Mode 1”!
If it should be prevented that the clients bypass the proxy and therefore the proxy logs, the following rules should be created: As “Source” the “Internet IP” (Network → red) have to be selected.
Grafical example for a possible minimal configuration:
So that everything works, the proxy needs to operate in non transparent mode, also the proxy should be registered in the client system (network settings) and equally in the browser settings (if the browser don´t refer the settings from the system preferences)
If there is the need for special outgoing services (ports) for example the usage of a RDP (remote desktop protocol) connection, it is possible to create a allow rule for port 3389/tcp and the source “All” (the service is usable from every zone, Source IP, Source MAC, etc). If the service should only be accessible from one zone (for example green), or a specific IP, MAC addres, specify this over “Add rule” and the pull down menu “Source” in the outgoing firewall. |
||