Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Crazy Squid Cashing Server Idea, Need Advice. Goto page Previous  1, 2
View previous topic :: View next topic  
Author Message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Sat Dec 28, 2013 4:42 am    Post subject: Reply with quote

Can you post the contents of /etc/rc.d/rc.firewall?
You have me confused, so to clear this a bit, you want (let me know if I'm wrong)

internet <----> eth0 (wan side) <--route--> eth1 <---> linksys wifi router <---
---> wifi clients

Linksys doesn't need to be on it's wan port but on it's lan ports, and also if you don't set it up with a static IP you should setup a dhcp server on eth1.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sat Dec 28, 2013 10:12 am    Post subject: Reply with quote

/etc/rc.d/rc.firewall
Quote:
#!/bin/sh
iptables -t nat -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT


Modem 192.168.0.1 > Strange Internet Kung Fu Bridge > SMS ROUTER ETH0 > SQUID, DANSGUARDIAN, ROUTER, FIREWALL INSANITY FRUSTRATION > ETH1 (192.168.1.1) > To WAN Side of Ethernet Wireless Router, and you say LAN will work ?

SQUID does not start automatically, neither does DANSGUARIDIAN, but the FIREWALL does now.

I want the Tower to become the DHCP NAT Router on ETH1, so I could hook a switch into it, or a router, or computer, or my finger.

Internet is slow after hooking it to our kung fu bridge, so the SQUID server is to speed it up. I don't want to config each device to proxy. Sad

KILL THE COMPUTER WHA HA HA HA HA.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Sat Dec 28, 2013 10:45 am    Post subject: Reply with quote

OK! lets start with the basics...
Assuming you have latest SMS version squid should automatically start at boot if you issued the "smsconfig squid on", if not we will figure it out what's wrong later...

Step one stop dansguardian, squid for now...
plug a machine on eth1 or configure your linksys with static IP to wan port
IP:192.168.1.2
subnet: 255.255.255.0
gateway: 192.168.1.1
DNS: your isp dns

Assuming you have internet on SMS through eth0, you should have on linksys or your machine at eth1...

Now step two, run squid with default configuration( you only need to uncomment the cache_dir line and initiate it as nobody and add if not exist "acl localnet src 192.168.1.0/24") and check internet connectivity...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sat Dec 28, 2013 7:15 pm    Post subject: Reply with quote

acl localnet src 192.168.1.0/24 ???
Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sat Dec 28, 2013 9:52 pm    Post subject: Reply with quote

I configured the router the way you said, and still no internet access threw it.
Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 1:20 am    Post subject: Reply with quote

Failed to start dhcpd :
Internet Systems Consortium DHCP Server 4.2.5-P1
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcpd.conf line 6: subnet 192.168.1.1 netmask 255.255.255.0: bad subnet number/mask combination.
subnet 192.168.1.1 netmask 255.255.255.0
^
Configuration file errors encountered -- exiting

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
Lines around 6 in /etc/dhcpd.conf :
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
# eth1 192.168.1.1
subnet 192.168.1.1 netmask 255.255.255.0 {
allow unknown-clients;
ddns-updates on;
range 192.168.1.2 192.168.1.244;
}

I tried different masks including 255.255.255.255 and it liked that mask.
However then I get:
Internet Systems Consortium DHCP Server 4.2.5-P1
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
bad range, address 192.168.1.3 not in subnet 192.168.1.1 netmask 255.255.255.255

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

I think the computer is on crack.
Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 1:58 am    Post subject: Reply with quote

Got it all working now.

Only thing I'm not sure is if the transparent squid proxy is working.
Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 2:30 am    Post subject: Reply with quote

What should my config file look like for squid, to use the most memory available ?
This is my System Resources.


System hostname sms (198.105.251.23)
Operating system SMS - Superb! Mini Server 2.0.6
Webmin version 1.660
Time on system Sat Dec 28 14:38:40 2013
Kernel and CPU Linux 3.4.67-smp on i686
Processor information Celeron (Mendocino), 1 cores
System uptime 1 days, 2 hours, 52 minutes
Running processes 146
CPU load averages 0.18 (1 min) 0.17 (5 mins) 0.28 (15 mins)
CPU usage 0% user, 33% kernel, 0% IO, 67% idle
Real memory 356.96 MB total, 205.57 MB used

Virtual memory 973.05 MB total, 3.20 MB used

Local disk space 17.42 GB total, 3.77 GB used

----

#
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128 transparent
http_port 3129

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/log/squid/cache/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/log/squid/cache/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_effective_user nobody
cache_effective_group nogroup

---

I would like to have this set up so that
It could use my virtual ram, and system ram.
Fill up my HD up to 80% and my RAM+VirtualRAM Up to 80%
I want the max cached object size to be 13MB.

Problem is if I put in the wrong values, Squid won't start.

I got everything going threw it and working now, so my wife would kill me if I screw it up while she's using it.



SystemResources.png
 Description:
 Filesize:  148.19 KB
 Viewed:  1228 Time(s)

SystemResources.png


Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 2:44 am    Post subject: FREE MY RAM ! Reply with quote

Here is what is running:

Real memory: 356.96 MB total / 153 MB free / 118.20 MB cached Swap space: 973.05 MB total / 969.85 MB free (does that mean Squid is caching 118 MB ?)
ID Owner Size Command
2176 mysql 309884 kB /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/li ...
2337 root 94424 kB /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock - ...
2196 apache 72764 kB /usr/sbin/httpd -k start
2188 root 72420 kB /usr/sbin/httpd -k start
2197 apache 72420 kB /usr/sbin/httpd -k start
2198 apache 72420 kB /usr/sbin/httpd -k start
2199 apache 72420 kB /usr/sbin/httpd -k start
2200 apache 72420 kB /usr/sbin/httpd -k start
15899 apache 72420 kB /usr/sbin/httpd -k start
15903 apache 72420 kB /usr/sbin/httpd -k start
15904 apache 72420 kB /usr/sbin/httpd -k start
15905 apache 72420 kB /usr/sbin/httpd -k start
15906 apache 72420 kB /usr/sbin/httpd -k start
1620 root 41484 kB /usr/sbin/named
2317 root 39552 kB /usr/bin/spamd -d -u spamduser -H /var/spool/spamassassin --pidfile=/var/run/spa ...
2318 spamduser 39552 kB spamd child
2319 spamduser 39552 kB spamd child
16268 nobody 37524 kB /usr/sbin/dansguardian
16267 nobody 36548 kB /usr/sbin/dansguardian
16266 nobody 36544 kB /usr/sbin/dansguardian
16269 nobody 36544 kB /usr/sbin/dansguardian
16270 nobody 36544 kB /usr/sbin/dansguardian
16271 nobody 36544 kB /usr/sbin/dansguardian
16272 nobody 36544 kB /usr/sbin/dansguardian
16273 nobody 36544 kB /usr/sbin/dansguardian
16274 nobody 36544 kB /usr/sbin/dansguardian
16275 nobody 36544 kB /usr/sbin/dansguardian
16276 nobody 36544 kB /usr/sbin/dansguardian
2325 root 33024 kB /usr/sbin/smbd -D
2332 root 32508 kB /usr/sbin/smbd -D
2302 sqlgrey 26760 kB /usr/bin/perl -w /usr/sbin/sqlgrey -d
1720 root 24252 kB /usr/libexec/polkitd --no-debug
16742 root 24236 kB /usr/local/webmin//proc/index_size.cgi
2222 root 20712 kB /usr/libexec/slapd
1648 root 20400 kB /usr/sbin/console-kit-daemon
2201 root 19048 kB /usr/bin/perl /usr/local/webmin//miniserv.pl /etc/webmin/miniserv.conf
16748 root 19048 kB /usr/bin/perl /usr/local/webmin//miniserv.pl /etc/webmin/miniserv.conf
16749 root 19048 kB /usr/bin/perl /usr/local/webmin//miniserv.pl /etc/webmin/miniserv.conf
16751 root 19048 kB /usr/bin/perl /usr/local/webmin//miniserv.pl /etc/webmin/miniserv.conf
2327 root 18328 kB /usr/sbin/nmbd -D
1715 haldaemon 17728 kB /usr/sbin/hald --daemon=yes
16307 nobody 16284 kB (squid-1) -f /etc/squid/squid.conf
1786 root 14916 kB hald-runner
2218 uucp 12360 kB /usr/sbin/faxq
16707 uucp 12276 kB /usr/sbin/faxgetty /dev/ttyS0
2220 uucp 11996 kB /usr/sbin/hfaxd -i hylafax
16305 root 11564 kB /usr/sbin/squid -f /etc/squid/squid.conf
2298 postfix 9932 kB qmgr -l -t fifo -u
2373 nobody 9928 kB proftpd: (accepting connections)
16517 postfix 9872 kB pickup -l -t fifo -u
2295 root 9780 kB /usr/libexec/postfix/master -w
15789 root 9716 kB /usr/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/state/dhcp/dhcpd.leases eth1
1838 root 8960 kB /usr/sbin/saslauthd -a shadow
1839 root 8960 kB /usr/sbin/saslauthd -a shadow
1840 root 8960 kB /usr/sbin/saslauthd -a shadow
1841 root 8960 kB /usr/sbin/saslauthd -a shadow
1842 root 8960 kB /usr/sbin/saslauthd -a shadow
7382 root 7688 kB sshd: root@pts/0
16621 root 7688 kB sshd: root@pts/1
1793 root 5792 kB hald-addon-input: Listening on /dev/input/event0 /dev/input/event1
1802 root 5792 kB hald-addon-storage: polling /dev/sr0 (every 16 sec)
15522 root 5716 kB grotty
1617 root 5100 kB /usr/sbin/sshd
7385 root 4864 kB -bash
16623 root 4864 kB -bash
1243 root 4832 kB /sbin/udevd --daemon
2443 root 4828 kB /sbin/udevd --daemon
2444 root 4828 kB /sbin/udevd --daemon
15515 root 4524 kB /bin/sh /usr/bin/nroff -mandoc
15511 root 4516 kB sh -c (cd "/usr/man" && (echo ".ll 10.2i"; echo ".nr LL 10.2i"; echo ".pl 1100i" ...
15512 root 4516 kB sh -c (cd "/usr/man" && (echo ".ll 10.2i"; echo ".nr LL 10.2i"; echo ".pl 1100i" ...
16315 nobody 3744 kB (pinger)
2339 root 3740 kB /usr/libexec/gam_server
16313 nobody 3636 kB (logfile-daemon) /var/log/squid/logs/access.log
16314 nobody 3484 kB (unlinkd)
2308 root 3356 kB /usr/sbin/dovecot
15520 root 3280 kB groff -mtty-char -Tutf8 -mandoc
2312 root 3144 kB dovecot/log
16753 root 3084 kB sh -c ps --cols 2048 -eo user:80,ruser:80,group:80,rgroup:80,pid,ppid,pgid,pcpu, ...
1645 messagebus 3020 kB /usr/bin/dbus-daemon --system
2311 dovecot 3012 kB dovecot/anvil
1852 root 2916 kB /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --character-set-server=utf ...
15517 root 2880 kB /usr/bin/less -is
16754 root 2680 kB ps --cols 2048 -eo user:80,ruser:80,group:80,rgroup:80,pid,ppid,pgid,pcpu,vsz,ni ...
15508 root 2572 kB man dhcpd.conf
1518 root 2272 kB /sbin/dhcpcd -t 10 eth0
2430 root 2252 kB /sbin/agetty --noclear 38400 tty1 linux
2431 root 2252 kB /sbin/agetty 38400 tty2 linux
2432 root 2252 kB /sbin/agetty 38400 tty3 linux
2433 root 2252 kB /sbin/agetty 38400 tty4 linux
2434 root 2252 kB /sbin/agetty 38400 tty5 linux
2435 root 2252 kB /sbin/agetty 38400 tty6 linux
1833 root 2248 kB /usr/sbin/crond -l notice
1835 daemon 2240 kB /usr/sbin/atd -b 15 -l 1
2329 root 2240 kB /usr/sbin/gpm -m /dev/mouse -t ps2
1392 root 2056 kB /usr/sbin/syslogd
1612 root 2044 kB /usr/sbin/inetd
1 root 2004 kB init [3]
1396 root 2000 kB /usr/sbin/klogd -c 3 -x
2 root 0 kB [kthreadd]
3 root 0 kB [ksoftirqd/0]
6 root 0 kB [migration/0]
7 root 0 kB [cpuset]
8 root 0 kB [khelper]
9 root 0 kB [kdevtmpfs]
10 root 0 kB [netns]
11 root 0 kB [kworker/u:1]
484 root 0 kB [sync_supers]
486 root 0 kB [bdi-default]
488 root 0 kB [kblockd]
496 root 0 kB [ata_sff]
503 root 0 kB [khubd]
509 root 0 kB [md]
611 root 0 kB [rpciod]
625 root 0 kB [khungtaskd]
631 root 0 kB [kswapd0]
702 root 0 kB [fsnotify_mark]
723 root 0 kB [nfsiod]
734 root 0 kB [jfsIO]
735 root 0 kB [jfsCommit]
736 root 0 kB [jfsSync]
741 root 0 kB [xfsalloc]
742 root 0 kB [xfs_mru_cache]
743 root 0 kB [xfslogd]
746 root 0 kB [ocfs2_wq]
748 root 0 kB [user_dlm]
756 root 0 kB [crypto]
799 root 0 kB [kthrotld]
922 root 0 kB [cciss_scan]
942 root 0 kB [fc_exch_workque]
943 root 0 kB [fc_rport_eq]
944 root 0 kB [fcoethread/0]
947 root 0 kB [fnic_event_wq]
1078 root 0 kB [scsi_eh_2]
1081 root 0 kB [scsi_eh_3]
1084 root 0 kB [kworker/u:2]
1099 root 0 kB [exec-osm]
1105 root 0 kB [block-osm]
1170 root 0 kB [kpsmoused]
1181 root 0 kB [speakup]
1186 root 0 kB [deferwq]
1187 root 0 kB [devfreq_wq]
1190 root 0 kB [jbd2/sda1-8]
1191 root 0 kB [ext4-dio-unwrit]
1354 root 0 kB [flush-8:0]
16400 root 0 kB [kworker/0:0]
16573 root 0 kB [kworker/0:1]
16738 root 0 kB [kworker/0:2]

Are there any packages I can do without ?
Remember I need Dansguardian, Squid, DHCP, Routing, Firewall...
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Sun Dec 29, 2013 4:35 pm    Post subject: Reply with quote

You can disable a lot of services

/etc/rc.d/rc.sqlgrey stop
chmod -x /etc/rc.d/rc.sqlgrey
smsconfig mail stop
smsconfig mail off
smsconfig fax stop
smsconfig fax off
smsconfig mailscanner stop
smsconfig mailscanner off
smsconfig imap stop
smsconfig imap off
smsconfig sasl stop
smsconfig sasl off
smsconfig spamd stop
smsconfig spamd off
smsconfig ldap stop
smsconfig ldap off
smsconfig ftp stop
smsconfig ftp off
smsconfig sql stop
smsconfig sql off
smsconfig cups stop
smsconfig cups off
smsconfig smb stop
smsconfig smb off

we leave httpd, webmin, bind and ssh for now...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 5:12 pm    Post subject: Reply with quote

That got me down to here:


System hostname sms
Operating system SMS - Superb! Mini Server 2.0.6
Webmin version 1.660
Time on system Sun Dec 29 06:01:35 2013
Kernel and CPU Linux 3.4.67-smp on i686
Processor information Celeron (Mendocino), 1 cores
System uptime 0 hours, 2 minutes
Running processes 86
CPU load averages 2.12 (1 min) 0.96 (5 mins) 0.36 (15 mins)
CPU usage 79% user, 21% kernel, 0% IO, 0% idle
Real memory 356.96 MB total, 64.82 MB used

Virtual memory 973.05 MB total, 0 bytes used

Local disk space 17.42 GB total, 3.77 GB used

After reboot however DHCP server is not on, Can't start Dansguardian, Can't start Squid Sad

Starting squid daemon:
/usr/sbin/squid -f /etc/squid/squid.conf
2013/12/29 06:03:48| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.
2013/12/29 06:03:49| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.
2013/12/29 06:03:50| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.

After starting DHCP Dansguardian started, but Squid would not.

Looks like eth0 has to be configured for automatic settings, can't set static or it won't work.

Call me crazy but this is my rc.local and it's not autostarting dhcpd, dansguardian, or squid Sad but at least I can connect to the internet.

#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

# BootSplash functions
. /etc/rc.d/rc.bootsplash

squid
smsconfig squid on
smsconfig dansguardian on
/etc/rc.d/rc.sqlgrey stop
chmod -x /etc/rc.d/rc.sqlgrey
smsconfig mail stop
smsconfig mail off
smsconfig fax stop
smsconfig fax off
smsconfig mailscanner stop
smsconfig mailscanner off
smsconfig imap off
smsconfig imap stop
smsconfig sasl stop
smsconfig sasl off
smsconfig spamd stop
smsconfig spamd off
smsconfig ldap stop
smsconfig ldap off
smsconfig ftp off
smsconfig sql off
smsconfig cups stop
smsconfig smb stop
smsconfig smb off
smsconfig dhcpd on
dhcpd
dansguardian
squid

I don't know why things won't auto start Sad
Back to top
View user's profile Send private message
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Sun Dec 29, 2013 7:45 pm    Post subject: THE CURSE OF THE CACHE Reply with quote

Youtube being cashed specifically when editing annotations, won't let me publish saved changes Sad

HEY but at least now after reboot everything is running automatically, and:
System hostname sms (198.105.251.23)
Operating system SMS - Superb! Mini Server 2.0.6
Webmin version 1.660
Time on system Sun Dec 29 08:56:33 2013
Kernel and CPU Linux 3.4.67-smp on i686
Processor information Celeron (Mendocino), 1 cores
System uptime 0 hours, 5 minutes
Running processes 113
CPU load averages 2.08 (1 min) 1.58 (5 mins) 0.71 (15 mins)
CPU usage 96% user, 4% kernel, 0% IO, 0% idle
Real memory 356.96 MB total, 118.49 MB used

Virtual memory 973.05 MB total, 0 bytes used

Local disk space 17.42 GB total, 3.77 GB used
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Sun Dec 29, 2013 9:01 pm    Post subject: Reply with quote

First remove from /etc/rc.d/rc.local
those lines

Code:
squid
smsconfig squid on
smsconfig dansguardian on
/etc/rc.d/rc.sqlgrey stop
chmod -x /etc/rc.d/rc.sqlgrey
smsconfig mail stop
smsconfig mail off
smsconfig fax stop
smsconfig fax off
smsconfig mailscanner stop
smsconfig mailscanner off
smsconfig imap off
smsconfig imap stop
smsconfig sasl stop
smsconfig sasl off
smsconfig spamd stop
smsconfig spamd off
smsconfig ldap stop
smsconfig ldap off
smsconfig ftp off
smsconfig sql off
smsconfig cups stop
smsconfig smb stop
smsconfig smb off
smsconfig dhcpd on
dhcpd
dansguardian
squid


for dhcpd create a file /etc/rc.d/rc.dhcpd and make it executable

Code:
#!/bin/sh
#
# /etc/rc.d/rc.dhcpd
#      This shell script takes care of starting and stopping
#      the ISC DHCPD service
#

# Put the command line options here that you want to pass to dhcpd:
DHCPD_OPTIONS="-q eth1"

[ -x /usr/sbin/dhcpd ] || exit 0

[ -f /etc/dhcpd.conf ] || exit 0

start() {
      # Start daemons.
      echo -n "Starting dhcpd:  /usr/sbin/dhcpd $DHCPD_OPTIONS "
      /usr/sbin/dhcpd $DHCPD_OPTIONS
      echo
}
stop() {
      # Stop daemons.
      echo -n "Shutting down dhcpd: "
      killall -TERM dhcpd
      echo
}
status() {
  PIDS=$(pidof dhcpd)
  if [ "$PIDS" == "" ]; then
    echo "dhcpd is not running!"
  else
    echo "dhcpd is running at pid(s) ${PIDS}."
  fi
}
restart() {
      stop
      start
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        start
        ;;
  status)
        status
        ;;
  *)
        echo "Usage: $0 {start|stop|status|restart}"
        ;;
esac

exit 0


and put only that in rc.local

Code:
if [ -x /etc/rc.d/rc.dhcpd ]; then
    /etc/rc.d/rc.dhcpd start
fi



...and reboot...

what's the output of
Code:
smsconfig sys


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
crazyideasguy
Member


Joined: 30 Nov 2013
Posts: 22
Location: United States

PostPosted: Mon Dec 30, 2013 1:04 am    Post subject: Reply with quote

Quote:
System Information:
Hostname: sms sms
Network eth0: 192.168.0.7
Network eth1: 192.168.1.1
Architecture: i686 3.4.67-smp
CPU: Celeron (Mendocino)
Memory: Total: 356MB Free: 111MB Available: 252MB
Disk Cache: 110MB Disk Buffers: 31MB
SwapTotal: 973MB SwapFree: 973MB

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 18G 2.9G 14G 18% /
tmpfs 179M 0 179M 0% /dev/shm


Hope that helps you figure out what my Squid Memory Conf should be. "Reverse lookups for banned site and URLs" isn't staying checked when I hit save.

"As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs (more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB. It is recommended to have at least twice this amount of physical RAM available on your Squid server. For a more detailed discussion on Squid's memory usage see the sections above." http://wiki.squid-cache.org/SquidFaq/SquidMemory#How_much_memory_do_I_need_in_my_Squid_server.3F

I checked and Dansguardian isn't blocking any porn sites.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional