Security Basics mailing list archives

Re: OpenVPN Configuration


From: bala.linux () gmail com
Date: 18 Feb 2009 07:09:51 -0000

Hello Simon,

      This could be achieved by using the iptables. For example, the following  forward rule can be used to enable only 
two ports [provided other ports are closed].

Eg : -A FORWARD -s 10.8.1.20 -d 192.168.0.2/32 -p tcp -m multiport --dports 22,80 -m time --datestart 
2008-04-02T19:00:05 --datestop 2008-04-02T21:00:05 -j ACCEPT

The above rule will open port 22 and 80 for the specified time.

Thanks and Regards.
Bala


Current thread: