RewriteEngine on
DocumentRoot /home/dave/public_html/web
ServerName web-5-6.linuxzoo.net
ServerName vm-5-8.linuxzoo.net
ServerAlias host-5-8.linuxzoo.net
DocumentRoot /home/dave/public_html/vm
RewriteEngine On
RewriteCond %{HTTP_HOST} host-5-8\.linuxzoo\.net [NC]
RewriteCond %{REQUEST_URI} !^/~dave/.*$
#RewriteRule ^(/~dave/.*)$ http://host-5-8.linuxzoo.net$1 [L]
RewriteRule ^(.*)$ http://vm-5-8.linuxzoo.net$1 [L]
AllowOverride AuthConfig
AllowOverride AuthConfig
AuthType Basic
AuthName "Restricted"
AuthUserFile /home/tom/webpasswd
AuthGroupFile /home/tom/webgroup
#AuthBasicProvider file
Require user richard
#!/bin/bash
#
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
#
iptables -F RH-Firewall-1-INPUT 2> /dev/null
iptables -X RH-Firewall-1-INPUT 2> /dev/null
#
# Make sure ssh and telnet stay working, and that users on
# other VMs cannot log in.
#
# --- Put a rule here if you want to be inserting at the start of INPUT
#
iptables -A INPUT -i eth0 -p tcp --dport ssh -s ! 10.200.0.1 -j REJECT
iptables -A INPUT -i eth0 -p tcp --dport ssh -s ! 10.0.0.0/16 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport telnet -s ! 10.0.0.0/16 -j ACCEPT
#
# Sockets, once connected, continue to work
#
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#
#!/bin/bash
#
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
#
# Delete redhat default firewall chains
#
iptables -F RH-Firewall-1-INPUT 2> /dev/null
iptables -X RH-Firewall-1-INPUT 2> /dev/null
#
# For your own safety, stop users logging in from other VMs
#
iptables -A INPUT -i eth0 -p tcp --dport ssh -s 10.0.0.0/16 -j DROP
iptables -A INPUT -i eth0 -p tcp --dport telnet -s 10.0.0.0/16 -j DROP
#
# Your changes go after here.
#
iptables -A INPUT -p icmp --icmp-type 8 -m limit --limit 1/second -j ACCEPT
iptables -A INPUT -p icmp --icmp-type 8 -j LOG
iptables -A INPUT -p icmp --icmp-type 8 -j DROP