Wednesday, November 9, 2016
Router Configuration
Router Configuration
Tutorial: Router Configuration
So far we have only used Guarddog to protect a single workstation (i.e. the computer Guarddog is running on), but as many people know a computer running Linux can also act as a fantastic router for connecting multiple networks. In this tutorial we will go through how Guarddog can be used on a gateway machine to protect a LAN from the internet.Important
Guarddog only supports router configurations on machines running Linux kernel series 2.4 or later with iptables.Anatomy of a typical LAN connected to the Internet
The diagram also shows the zones that we will setup in Guarddog.
"Repeat after me: Guarddog is a firewall"
Note
This misconception arose because in the past on Linux, before kernel series 2.4, the networking sub-system was such that it wasnt possible to separate advanced routing functionality from normal firewall functionality. This lead to firewall programs that also included direct support for advanced routing features such as IP masquerade and port forwarding for example.Tip
Guidedogis a user friendly utility for configuring advanced networking features and is designed to work along side Guarddog.Configure Routing and Network Settings
Warning
I strongly recommend that you do not test your network setup while connected to a hostile network like the Internet. Attach a machine to the network card that you plan to connect to the internet and give it an IP address so that it can act as a pretend Internet.Teaching Guarddog to Allow Traffic to/from your LAN
The way we specify to Guarddog that computers on the LAN are allowed to access computers on the Internet is by using zones. We simply create a zone to hold the addresses of all of the computers on our LAN and then specify that this zone is connected to the Internet, and probably to the Local zone also, and then go to the Protocols tab and tick on whatever protocols should be allowed between the LAN and the Internet.
Step by Step
Next, go to the Connection list and tick Internet and Local to specify that your LAN zone should be connected to the Internet and Local zones.
Now, go to the Protocol tab and make sure that Protocols Served from Zone: is set to Internet. In the list of protocols below you should see a column of check boxes for the Local zone and another column for the LAN zone. Just like when we were turning on protocols for the local zone in the first tutorial, we can do the same for the LAN zone. Tick the list of protocols that machines in the LAN zone should be able to use with the Internet.
When you are ready, apply the changes and see if your machines on your LAN can access the internet. Thats all there is to it.
Available link for download
Labels:
configuration,
router
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment