firewalls

firewalls - /netfilter StartingApache apachectlstart...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Firewall Lab – Using Backtrack and iptables/netfilter Starting Apache apachectl start Starting sshd type in the konsole o /usr/sbin/sshd‐generate o /usr/sbin/sshd vsftpd – Downloading, Installing, and Running type in the konsole o wget ftp://vsftpd.beasts.org/users/cevans/vsftpd‐2.1.0.tar.gz o tar zxf vsftp‐2.1.0.tar.gz o cd vsftp‐2.1.0 o make o useradd nobody o mkdir /usr/share/empty o mkdir /var/ftp o usermod –d /var/ftp ftp o chown root.root /var/ftp o chmod og‐w /var/ftp o make install o cp vsftpd.conf /etc/. o nano –w /etc/vsftpd.conf make sure there is a line that says listen=YES o /usr/local/sbin/vsftpd & iptables View the current rules with the following command o iptables –L –‐line‐numbers ‐n Lock down the INPUT chain o iptables –A INPUT –p ip –j DROP o iptables –L –‐line‐numbers ‐n Allow connections that are already established or related o iptables –I INPUT –m state ‐‐state ESTABLISHED,RELATED –j ACCEPT o
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

firewalls - /netfilter StartingApache apachectlstart...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online