LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Shorewall question

[ILUG] Shorewall question

Andres Jimenez gandresin at gmail.com
Wed Mar 29 11:12:11 IST 2006


2006/3/29, Andres Jimenez <gandresin at gmail.com>:

> FW=/sbin/iptables
>
> 1-create a policy for those servers and define the list of servers
>        $FW -N name_to_server_policy
>         $FW -A name_to_server_policy -d IP_SERVER1 -j ACCEPT
>         $FW -A name_to_server_policy -d IP_SERVER2 -j ACCEPT
>         $FW -A name_to_server_policy -d IP_SERVER3 -j ACCEPT
>         $FW -A name_to_server_policy -d IP_SERVERn -j ACCEPT
>
> 2- define your rules:
> (for example ssh and dns)
> $FW -A FORWARD -p tcp -m multiport --dports 22,53  -j name_to_server_policy
>

I forgot to mention something important.
This policy  accetps only INCOMING packages, so you need another
policy to accept outgoing packages.
You can use different policies for different kinds of
server/workstations, so you just need to add/remove computers from
your lists.

--
Andres Jimenez



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell