Thread View: pl.comp.sys.sun.admin
5 messages
5 total messages
Started by Slawomir Stanczak
Mon, 06 Feb 2006 13:21
Sol10 - ipfilter
Author: Slawomir Stanczak
Date: Mon, 06 Feb 2006 13:21
Date: Mon, 06 Feb 2006 13:21
88 lines
4265 bytes
4265 bytes
Hi, W sumie został mi ostatni problem z Sol10. Chcę uruchmić na nim ipfilter, jedynie do blokowania zbędnych połączeń. Serwer nie pracuje jako router, NAT etc. tzn. nie za nim sieci wewnętrznej. Niby to jest proste, ale chyba o czymś zapomniałem bo z tego co widzę nie za bardzo to działa. Serwer to SFV-210 z czterema interfejsami bge z czego wykorzystuję tylko jeden bge0. Odkomentowałem w pliku /etc/ipf/pfil.ap pozycję: bge -1 0 pfil Dodałem do pliku /etc/ipf/ipf.conf poniższe reguły (moje IP - bge0 212.18.5.12 podaję zmyślone): # Zezwolenie na caly ruch wychodzacy z bge0 dla tcp, udp oraz icmp pass out quick on bge0 proto tcp from any to any keep state pass out quick on bge0 proto udp from any to any keep state pass out quick on bge0 proto icmp from any to any keep state block out quick on bge0 all # Blokowanie adresow IP block in quick on bge0 from 192.168.0.0/16 to any # RFC 1918 private IP block in quick on bge0 from 172.16.0.0/12 to any # RFC 1918 private IP block in quick on bge0 from 10.0.0.0/8 to any # RFC 1918 private IP block in quick on bge0 from 127.0.0.0/8 to any # loopback block in quick on bge0 from 0.0.0.0/8 to any # loopback block in quick on bge0 from 169.254.0.0/16 to any # DHCP auto- config block in quick on bge0 from 192.0.2.0/24 to any # Reserved for doc's block in quick on bge0 from 224.0.0.0/3 to any # Class D & E multicast # Zezwolenie na ustalone uslugi dla bge0 pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 21 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 22 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 25 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 110 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 143 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 993 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 995 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 80 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 443 flags S keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 53 keep state pass in quick on bge0 proto udp from any to 212.18.5.12 port = 53 keep state pass in quick on bge0 proto tcp from any to 212.18.5.12 port = 49 keep state pass in quick on bge0 proto udp from any to 212.18.5.12 port = 49 keep state # Blokowanie reszty block in quick on bge0 all # Zezwolenie (interfejs petli zwrotnej - lo0) pass in quick on lo0 all pass out quick on lo0 all Włączyłem ipfilter xxx #> svcadm enable network/ipfilter Przeładowałem system, ale z tego co widzę nic to nie zmieniło. Kiedy skanuję przy pomocy nmap-a serwer z zewnątrz wygląda to tak: 21/tcp open ftp 22/tcp open ssh 25/tcp open smtp 79/tcp open finger 110/tcp open pop3 111/tcp open rpcbind 143/tcp open imap 993/tcp open imaps 995/tcp open pop3s 3052/tcp open PowerChute 4045/tcp open lockd 32771/tcp open sometimes-rpc5 Są więc widoczne porty np. rpcbind lub PowerChute których nie powinno być. Czy ktoś z Was może mi powiedzieć gdzie robię błąd ? pozdrawiam Sławek
Re: Sol10 - ipfilter
Author: Krzysztof Kowalik
Date: Mon, 06 Feb 2006 16:28
Date: Mon, 06 Feb 2006 16:28
10 lines
1090 bytes
1090 bytes
Slawomir Stanczak <null@blackhole.net> wrote: [...] : xxx #> svcadm enable network/ipfilter [...] A network/pfil? -- Krzysztof Kowalik | () ASCII Ribbon Campaign Computer Center, AGH UST | /\ Support plain text e-mail
Re: Sol10 - ipfilter
Author: Slawomir Stanczak
Date: Tue, 07 Feb 2006 07:30
Date: Tue, 07 Feb 2006 07:30
14 lines
1174 bytes
1174 bytes
Krzysztof Kowalik wrote: > Slawomir Stanczak <null@blackhole.net> wrote: > [...] > : xxx #> svcadm enable network/ipfilter > [...] > > A network/pfil? > svcadm restart network/pfil Mimo to nie widzę żadnych zmian. pzdr. Sławek
Re: Sol10 - ipfilter
Author: Marcin Selke
Date: Tue, 07 Feb 2006 09:39
Date: Tue, 07 Feb 2006 09:39
16 lines
1178 bytes
1178 bytes
On Tue, 7 Feb 2006, Slawomir Stanczak wrote: > svcadm restart network/pfil > > Mimo to nie widzę żadnych zmian. > Sprobuj: autopush -f /etc/ipf/pfil.ap ifconfig bge0 unplumb ifconfig bge0 plumb pozdr, Marcin
Re: Sol10 - ipfilter
Author: Slawomir Stanczak
Date: Tue, 07 Feb 2006 10:11
Date: Tue, 07 Feb 2006 10:11
23 lines
1472 bytes
1472 bytes
Marcin Selke wrote: > Sprobuj: > autopush -f /etc/ipf/pfil.ap > ifconfig bge0 unplumb > ifconfig bge0 plumb > > pozdr, > Marcin > > Dziś zrobiłem jeszcze raz: #> svcadm enable network/ipfilter #> svcadm restart network/ipfilter I... działa doskonale. :) Będę musiał to sobie jeszcze dokładnie przetestować. Dziękuję wszystkim za pomoc. :) pzdr. Sławek
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads