ПОРТ 25,110,53

Postby !Serg » Fri Sep 28, 2007 5:29 pm

Как закрыть все порты кроме 25,110,53?
User avatar
!Serg
Junior Member
 
Posts: 40
Joined: Thu Sep 06, 2007 6:02 am

Postby !Serg » Sat Sep 29, 2007 5:28 am

Получилось
edit /pkg/rc/rc_user
Code: Select all
firewall)
 ipfwadm -F -a masquerad -W $INET -P tcp -S 192.168.125.0/24 -D-0/0 110
 ipfwadm -F -a masquerad -W $INET -P udp -S 192.168.125.0/24 -D-0/0 110
 ipfwadm -F -a masquerad -W $INET -P tcp -S 192.168.125.0/24 -D-0/0 25
 ipfwadm -F -a masquerad -W $INET -P udp -S 192.168.125.0/24 -D-0/0 25
 ipfwadm -F -a masquerad -W $INET -P tcp -S 192.168.125.0/24 -D-0/0 53
 ipfwadm -F -a masquerad -W $INET -P udp -S 192.168.125.0/24 -D-0/0 53
 ipfwadm -F -a reject -S 192.168.125.0/24
 ipfwadm -F -a reject -D 192.168.125.0/24
;;
User avatar
!Serg
Junior Member
 
Posts: 40
Joined: Thu Sep 06, 2007 6:02 am


Return to Russkij - Russian

Who is online

Users browsing this forum: No registered users and 2 guests

cron