Navigazione |
bsdVediamo come tenere aggiornati i pacchetti/ports di un sistema FreeBSD: per cominciare è necessario installare il pacchetto/port portmanager: # cd /usr/ports/ports-mgmt/portmanager # make all install poi utilizziamo portsnap per recuperare le ultime informazioni sui port: Per rendere più piacevole il prompt standard di csh su freebsd è sufficiente modificare il file ~/.login aggiungendo: set prompt="%B[%n@%m]%b%/: " Si avrà quindi un prompt del tipo [root@balin]/root: In PF (bsd packet filter) il nat address pool viene usato per mascherare in uscita con 2 o più indirizzi:
nat on $ext_if inet from any to any -> { 192.0.2.5, 192.0.2.10 }
ma per fare in modo che un client venga sempre mappato con lo stesso indirizzo:
nat on $ext_if inet from any to any -> 192.0.2.4/31 source-hash
table <firewall> const { self }
|