- Katılım
- 10 Mart 2013
- Mesajlar
- 265
- Tepkime puanı
- 19
- Puanları
- 146
Putty'e Bağlanıp
Kod:
Yazıyoruz
Ardından cıkan ekranda
Kod:
Giriyoruz
Kod:
Giriyoruz
Kod:
Giriyoruz
Kod:
işaretliyoruz
Ardından Yukarı çıkıp Exit diyoruz enterlıyoruz
Sonra Tekrar Exit Diyoruz
Gelen Ekranda 2. Sırada FTP tıklıyoruz
Sonra Gelen Ekranda 2. Sırada URL ye tıklıyoruz ftp:// kısmı siliyoruz
ve bu kodu yapıstırıyoruz entera basıyoruz ve tekrar enter
Kod:
Yukleme Yaptıkdan Sonra Cıkıp Yapıyoruz Cancel diyerek
Kod:
bu kodu yazıyoruz
biraz aşşada
Kod:
Yazar
No Yazan Yeri YES olarak Değişiyoruz
Kod:
yazıyoruz
Karşımıza birşey gelcek
options PAE nin altına bunları ekliyoruz Dİkkat aynı hizada Tab Tuşuyla hizaye getirebilirsiniz
Kod:
ekledikten sonra
Kod:
Kod:
Kod:
biraz uzun surebilir
Kod:
Kod:
Kod:
Kod:
Kod:
bunları ekliyoruz
ee /etc/fw
Kod:
ekliyoruz ve ESC ye basıp 2 kere a ya basıyoruz
ve reboot atıyoruz /etc/rc.d/ipfw restart komutuyla firewallınızın calıstıgını anlıcaksınız.
Kod:
Kod:
sysinstall[/FONT][/COLOR]
Ardından cıkan ekranda
Kod:
Kod:
configure[/FONT][/COLOR]
Kod:
Kod:
Distributions[/FONT][/COLOR]
Kod:
Kod:
src[/FONT][/COLOR]
Kod:
Kod:
sys[/FONT][/COLOR]
Ardından Yukarı çıkıp Exit diyoruz enterlıyoruz
Sonra Tekrar Exit Diyoruz
Gelen Ekranda 2. Sırada FTP tıklıyoruz
Sonra Gelen Ekranda 2. Sırada URL ye tıklıyoruz ftp:// kısmı siliyoruz
ve bu kodu yapıstırıyoruz entera basıyoruz ve tekrar enter
Kod:
Kod:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.2-RELEASE[/FONT][/COLOR]
Kod:
Kod:
cd /boot/defaults && ee loader.conf[/FONT][/COLOR]
biraz aşşada
Kod:
Kod:
ipfw_load"NO" #Firewall[/FONT][/COLOR]
No Yazan Yeri YES olarak Değişiyoruz
Kod:
Kod:
cd /usr/src/sys/i386/conf
cp PAE Memento
ee Memento
Karşımıza birşey gelcek
options PAE nin altına bunları ekliyoruz Dİkkat aynı hizada Tab Tuşuyla hizaye getirebilirsiniz
Kod:
Kod:
options IPFIREWALL # required for IPFW
options IPFIREWALL_VERBOSE # optional; logging
options IPFIREWALL_VERBOSE_LIMIT=10 # optional; don't get too many log entries
options IPDIVERT # needed for natd
Kod:
Kod:
config Memento[/FONT][/COLOR]
Kod:
cd ../compile/Memento[/FONT][/COLOR]
Kod:
make[/FONT][/COLOR]
Kod:
Kod:
make install[/FONT][/COLOR]
Kod:
cd /usr/src/sys/i386/conf[/FONT][/COLOR]
Kod:
cp /boot/kernel.old/geom_* /boot/kernel[/FONT][/COLOR]
Kod:
ee /etc/rc.conf[/FONT][/COLOR]
Kod:
firewall_enable="YES"
firewall_script="/etc/fw"
firewall_type="OPEN"
ee /etc/fw
Kod:
Kod:
IPF="ipfw -q add"
ipfw -q -f flush
#loopback
$IPF 10 allow all from any to any via lo0
$IPF 20 deny all from any to 127.0.0.0/8
$IPF 30 deny all from 127.0.0.0/8 to any
$IPF 40 deny tcp from any to any frag
$IPF 42 deny all from any to me 15000
$IPF 42 deny all from any to me 15001
$IPF 42 deny all from any to me 12001
$IPF 42 deny all from any to me 14001
$IPF 42 deny all from any to me 14002
$IPF 42 deny all from any to me 14003
$IPF 42 deny all from any to me 14004
$IPF 42 deny all from any to me 14061
$IPF 42 deny all from any to me 17001
$IPF 42 deny all from any to me 17002
$IPF 42 deny all from any to me 17003
$IPF 42 deny all from any to me 17004
$IPF 42 deny all from any to me 17061
$IPF 42 deny all from any to me 14000
$IPF 42 deny all from any to me 17000
$IPF 42 deny all from any to me 14099
$IPF 42 deny all from any to me 20000
$IPF 42 deny all from any to me 20001
$IPF 42 deny all from any to me 20002
$IPF 42 deny all from any to me 20003
$IPF 42 deny all from any to me 20004
$IPF 42 deny all from any to me 20061
$IPF 42 deny all from any to me 20099
$IPF 42 deny all from any to me 22000
$IPF 42 deny all from any to me 22001
$IPF 42 deny all from any to me 22002
$IPF 42 deny all from any to me 22003
$IPF 42 deny all from any to me 22004
$IPF 42 deny all from any to me 22061
$IPF 42 deny all from any to me 22099
# statefull
$IPF 50 check-state
$IPF 60 allow ip from any to any out keep-state
$IPF 70 allow all from any to me in limit src-addr 20
#Apache
$IPF 120 allow tcp from any to me 3306
#PuTTy
$IPF 100 allow tcp from any to me 22
$IPF 170 deny udp from any to any 53 in
$IPF 175 deny tcp from any to any 53 in
$IPF 180 deny udp from any to any 53 out
$IPF 185 deny tcp from any to any 53 out
$IPF 198 deny tcp from any to any 25 in
#ch1 ports
$IPF 200 allow tcp from any to any 11002 in
$IPF 210 allow tcp from any to any 11002 out
$IPF 200 allow udp from any to any 11002 in
$IPF 210 allow udp from any to any 11002 out
$IPF 200 allow tcp from any to any 13000 in
$IPF 210 allow tcp from any to any 13000 out
$IPF 201 allow udp from any to any 13000 in
$IPF 211 allow udp from any to any 13000 out
$IPF 200 allow tcp from any to any 13001 in
$IPF 210 allow tcp from any to any 13001 out
$IPF 200 allow tcp from any to any 13002 in
$IPF 210 allow tcp from any to any 13002 out
$IPF 200 allow tcp from any to any 13003 in
$IPF 210 allow tcp from any to any 13003 out
$IPF 200 allow tcp from any to any 13004 in
$IPF 210 allow tcp from any to any 13004 out
$IPF 200 allow tcp from any to any 13061 in
$IPF 210 allow tcp from any to any 13061 out
$IPF 200 allow tcp from any to any 13099 in
$IPF 210 allow tcp from any to any 13099 out
#ch2 ports
$IPF 200 allow tcp from any to any 16000 in
$IPF 210 allow tcp from any to any 16000 out
$IPF 201 allow udp from any to any 16000 in
$IPF 211 allow udp from any to any 16000 out
$IPF 200 allow tcp from any to any 16001 in
$IPF 210 allow tcp from any to any 16001 out
$IPF 200 allow tcp from any to any 16002 in
$IPF 210 allow tcp from any to any 16002 out
$IPF 200 allow tcp from any to any 16003 in
$IPF 210 allow tcp from any to any 16003 out
$IPF 200 allow tcp from any to any 16004 in
$IPF 210 allow tcp from any to any 16004 out
$IPF 200 allow tcp from any to any 16061 in
$IPF 210 allow tcp from any to any 16061 out
#ch3 ports
$IPF 200 allow tcp from any to any 19000 in
$IPF 210 allow tcp from any to any 19000 out
$IPF 201 allow udp from any to any 19000 in
$IPF 211 allow udp from any to any 19000 out
$IPF 200 allow tcp from any to any 19001 in
$IPF 210 allow tcp from any to any 19001 out
$IPF 200 allow tcp from any to any 19002 in
$IPF 210 allow tcp from any to any 19002 out
$IPF 200 allow tcp from any to any 19003 in
$IPF 210 allow tcp from any to any 19003 out
$IPF 200 allow tcp from any to any 19004 in
$IPF 210 allow tcp from any to any 19004 out
$IPF 200 allow tcp from any to any 19061 in
$IPF 210 allow tcp from any to any 19061 out
$IPF 201 allow tcp from any to any 19099 in
$IPF 211 allow tcp from any to any 19099 out
#ch4 ports
$IPF 200 allow tcp from any to any 21000 in
$IPF 210 allow tcp from any to any 21000 out
$IPF 201 allow udp from any to any 21000 in
$IPF 211 allow udp from any to any 21000 out
$IPF 200 allow tcp from any to any 21001 in
$IPF 210 allow tcp from any to any 21001 out
$IPF 200 allow tcp from any to any 21002 in
$IPF 210 allow tcp from any to any 21002 out
$IPF 200 allow tcp from any to any 21003 in
$IPF 210 allow tcp from any to any 21003 out
$IPF 200 allow tcp from any to any 21004 in
$IPF 210 allow tcp from any to any 21004 out
$IPF 200 allow tcp from any to any 21061 in
$IPF 210 allow tcp from any to any 21061 out
$IPF 201 allow tcp from any to any 21099 in
$IPF 211 allow tcp from any to any 21099 out
ve reboot atıyoruz /etc/rc.d/ipfw restart komutuyla firewallınızın calıstıgını anlıcaksınız.
Son düzenleme: