View Single Post
  #6 (permalink)  
Old 08-06-2006, 01:20 AM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

Heh, to stop firewall:
create a script and put following lines:

Code:
vi /root/firewall.stop
Append following
Code:
#!/bin/bash
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Save the script and setup executable permissions:
Code:
chmod +x /root/firewall.stop
Now run script and your firewall will stop:
Code:
/root/firewall.stop


To start/stop/restart squid (Debian and others do not use service command):
Code:
/etc/init.d/squid restart
Rest stuff is same
Reply With Quote