grep -v -e ^\s*$ -e ^# /etc/squid/squid.conf -> Print Out Squid.conf
#usr/sbin/squidclient -h 192.168.10.35 -p 8080 mgr:info
setterm -fore green -back black -store > /dev/tty1
http://wiki.squid-cache.org/ConfigExamples/
iptables -t nat -A PREROUTING -s 192.168.10.35 -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.10.35:8080
iptables -t nat -A POSTROUTING -j MASQUERADE
http_port 192.168.10.35:8080 transparent
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.10.35:8080
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A FORWARD -s 192.168.10.218/32 -o eth0 -p tcp -m state --state NEW -m multiport --dports 593,88,53,135,137,138,42,25,110 -j ACCEPT
-A FORWARD -s 192.168.10.218/32 -o eth0 -p udp -m state --state NEW -m multiport --dports 593,88,53,135,137,138,42,25,110 -j ACCEPT
Subscribe to:
Post Comments (Atom)
-
ကကုသန္ဓော ကောဏဂမနော ကဿပေါ ဂေါတမော မုနိဆယ်ထား ဆယ်တော်မူမြတ်စွာဘုရား မေတ္တယျော ပဉ္စဗုဒ္ဓေါတေ သိသေမေသန္တ သဗ္ဗဒါ ဧတေသံ အာနုဘာဝေန ရက္ခဒေဝါ မဟိဒ္ဓ...
-
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target Created symlink /etc/systemd/system/sleep.target → /d...
-
1. install CentOS 4.4 (for me I'm using CentOS Mini 4.4, only 1 disc) 2. install nmap using yum (yum -y install nmap) 3. install etterca...
No comments:
Post a Comment