0.4.2 + Apache = Good, but + Squid = Bad?

Support section for FREESCO v0.4.x 3rd Party Packages

0.4.2 + Apache = Good, but + Squid = Bad?

Postby Kalist Shawxo » Mon Dec 07, 2009 11:58 am

ok, so this a for off of viewtopic.php?f=40&t=17328&p=94906#p94906

Here's the deal... can't get Squid to work with Apache. so, per the previous thread I did the following:

uninstalled Squid, uninstalled Apache, and then even disabled basic http server. saved and shut down.

turned on the basic http server with defaults (port 80).
installed Apache, with all default settings.
installed Squid, with all default settings and the following change to the config:

added:
Code: Select all
ipfwadm -I -a accept -P tcp -S 10.0.0.0/24 -D 10.0.0.1 80
ipfwadm -I -a accept -P tcp -S 10.0.0.0/24 -D 0/0 80 -r 3128

to make a transparent proxy.

when I saved the files and it started up squid, I get an error of:
Code: Select all
/pkg/rc/rc_squid: 83: syntax error: "then" expected
NO SUCH FILE


I rerun through the config, making no changes, and this time it does the NAT, stops Squid, and starts Squid without errors.

reboot and I can get on the web, but I can not access my webmail or cpanel from my webspace. I put in the domain name and it redirects to port 2082 and simply gives me a listing like I went to port 80. (this is not my FREESCO box obviously)
also, I can access the webpage on the FREESCO box, but can not access the control panel, when I try to login for http://10.0.0.1:1082/cgi/usr.cgi I get:
a 404 page
Code: Select all
Not Found
The requested URL /cgi/usr.cgi was not found on this server.

and lastly, I can't log in to eBay of all things.

so I went back to the router, took out the two route lines and restarted, now I can get into my webmail and cpanel, and eBay... but not into my FREESCO control panel. so I reboot the router, and now I can access it.

so, default webserver (or customized) it works fine with 0.4.2, add in Squid and it all goes goofy when I try to make the transparent proxy. everything works fine with the default settings for squid, but I don't think it is doing what I want it to.

Report:
Code: Select all
   FREESCO v0.4.2 System Report.
   Generated - Mon Dec  7 11:45:51 EST 2009
System language: english


----- clock -----
Mon Dec  7 11:45:52 2009


----- cat /etc/system.cfg -----
# [System]
ROUTER=ethernet   # dialup/leased/ethernet/bridge
HOSTNAME=APU   #Router name
DOMAIN=Springfield   #Local domain
ENAMSQ=y     #NAT/firewall
STLTH=r      #Stealth or Reject=
NPNG=s      #ICMP responses
NBRG=n       #Bridging mode
BIGMEM=y    #Command line history
RMDRV=n      #Ram disk
RSRM=n      #Manual ramdisk control
RMSZ=2      #Ramdisk size in MB
SVRS=30,0     #Blank screen,hdd. 0 = off
SSVR="15,tclock,24,ra"   #Screen saver,Name,options. 0 = off
SWPSZ=0      #Swap size. 0 = off
LGSZ=50000,5000,50000   #System,Logins,Info log sizes
SVLG=n      #Save system logs
NBP=y      #Beeps
NBPT=1600,2200   #start, stop
NBPF=y      #Firewall sound
NBPD=y      #DHCP server
NBPDH=y      #DHCP client
NBPL=y      #Login sound
NBPP=y      #New IP sound
NBPPD=y      #PPP down sound
NBPPO=y      #Power off
NMN=n      #Flashing leds
NLGGR=n      #Network monitor
NTOP=n      #Top monitor
NCON=n      #ISP connect time
DCON=n      #RAS connect time
LLED=n      #Link LED
CLRS=y      #Console colors
NPNP=n      #ISA PnP
DFSP=      #Default dialup ISP
RDNLY=n      #Run in ram
EDIT=/bin/edt   #Default editor
NMLCK=y      #NUM lock
# [Log/Debug]
LGDHCP=y   #DHCP server
DHCPLG=y   #DHCP client
LGDNS=y      #DNS
LOGHTTP=y   #HTTP/control
LGCHT=n      #Chat
LGDLD=n      #Diald
LGDLP=n      #Dialup
LGNT=0      #Netmeeting [0-4]
LGPPPD=s   #pppd
LGDNT=n      #Ident
LGFTP=e      #FTP
LGLP=n       #Printer
LGFR=e      #firewall
# [Services/servers]
NDNS=s          #DNS Server
DNSCCH=600      #Cache. 0 = disable
NCRN=n         #Cron daemon
NDHCP=y       #DHCP server
WINSADDR=10.0.0.1      #WINS address
LZTM=86400,172800   #lease-time,max-lease-time
ENAWWW=s       #HTTP Server
WWWPORT=80      #port
USRWWW=n      #User web pages
RESWWW=n      #Bandwidth
RESVAL=25000      #Bps
ENAWWA=s       #Control via HTTP
WWAPORT=1082       #port
CPW=20         #left width %
CPH=15         #bottom height %
TIMADDR=pool.ntp.org   #NTP URL, empty = disable
TIMZONE=+0000      #Offset to UTC
ENALPD=n       #Print Server
LPPORT0=515      #port
NSSHD=n         #SSH/SFTP server
SSHP=22         #port
SSHCMD=""   #Extra command line options
NPFWD=y         #Port forwarding
ENADYNDNS=n      #Dynamic name client
NDNP=y         #Dyndns local URL
NID=n         #Ident server
NFTP=s         #FTP Server
FTPPRT=21      #port
FTPCN=1      #FTP connections
FTPCC=10         #Concurrent FTP connections
FTPNN=n         #Anonymous FTP
RTFTP=y         #allow root
FTPBW=""      #FTP Bandwidth
NRS=n         #Dialin
SRS=n         #Silent modem
ENASMTP=y      #Email client
SVRMN=",dns,http,control,ssh,ftp"      #Server monitor
SVRTM=30         #check time
PKGDOMAIN=http://freescosoft.avaarsani.ca/0.4.x/  #package URL
STST=14671
HOMEURL=http://www.freesco.org/   #Patch URL
PKGDR=/www/packages/0.4.x   #Package save dir
# [Security]
TRSTN0=y       #Trust net0
TRSTN1=y       #Trust net1
TRSTMD=n      #Trust dial IN
RNGS=0,0      #Rings login,nologin time
MonTM=""      #Nologin times
TueTM=""
WedTM=""
ThuTM=""
FriTM=""
SatTM=""
SunTM=""
MDI=n      #Load icq
MDD=n      #Load raudio
MDV=n      #Load vdolive
MDQ=n      #Load quake
MDR=n      #Load irc
MDF=y      #Load ftp
MDN=n      #Load netmeeting
XTRAPTS=""   #Stealthed ports
# [Hardware COM Ports]
# [Modems]
# [ diald ]
# [ethernet/leased/printer/ras router]
GATEWAY=98.27.66.1      #Gateway
DNSDDR=209.18.47.61      #Primary DNS
DNSDDR1=209.18.47.62      #Second
DNSDDR2=      #Third
DNSDDR3=      #Fourth
PROXY=""      #HTTP proxy addr[:port]
   
# [Ethernet hardware]
IO0=0x300
IRQ0=10
IO1=0x210
IRQ1=11
   
# [Network 0]
SDHCP=y            #DHCP client
DHCPDNS=y         #DNS via DHCP
INTNAME0=eth0         #Interface
IPADDR0=98.27.66.10      #IP address
NETMASK0=255.255.254.0      #Netmask
NETWORK0=98.27.66.0      #Network address
BRDCAST0=255.255.255.255      #Broadcast address
IPRANGE0=""   #DHCP server IP range
# [Network 1]
INTNAME1=eth1         #Interface
IPADDR1=10.0.0.1      #IP address
NETMASK1=255.255.255.0      #Netmask
NETWORK1=10.0.0.0      #Network address
BRDCAST1=10.0.0.255      #Broadcast address
IPRANGE1="10.0.0.30 10.0.0.39"   #DHCP server IP range


----- cat /etc/live.cfg -----
BOOTMOD=
VERSION=0.4.2
BOOTDEV=hda1
BOOTIME="Wed Dec  7 11:37:59  1994"
IPADDR0=98.27.66.10
NETMASK0=255.255.254.0
BRDCAST0=255.255.255.255
NETWORK0=98.27.66.0
GATEWAY=98.27.66.1
DNSDDR=209.18.47.61
DNSDDR1=209.18.47.62


----- cat /etc/dhcpc/dhcpcd-eth0.info -----
IPADDR=98.27.66.10
NETMASK=255.255.254.0
NETWORK=98.27.66.0
BROADCAST=255.255.255.255
GATEWAY=98.27.66.1
HOSTNAME='APU'
DOMAIN='twmi.rr.com'
DNS=209.18.47.61,209.18.47.62
DHCPSID=10.57.0.1
DHCPGIADDR=10.57.0.1
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:50:04:04:A8:A3
DHCPSHADDR=00:19:2F:E5:DF:05
DHCPSNAME=''
LEASETIME=3600
RENEWALTIME=1800
REBINDTIME=3150
INTERFACE='eth0'
CLASSID='Linux 2.0.40 i486'
CLIENTID=00:50:04:04:A8:A3


----- cat /etc/portfw.cfg | sed s/\#.*//g -----
 


----- cat /etc/restrict.cfg | sed s/\#.*//g -----


----- sed -n 1,/\#@@/P /etc/chat.pwd -----
ISPNAME=


----- lsmod -----
Module      Pages      Used by
ip_masq_ftp        1      0
3c509.e-n          2      2


----- ls -l /boot/drv/ -----
-rw-r--r--    1 root     root         4556 Feb  6  2009 3c509.gz


----- dmesg | sed -n /eth/P -----
eth0: 3c509 at 0x300 tag 1, 10baseT port, address  00 50 04 04 a8 a3, IRQ 10.
eth1: 3c509 at 0x210 tag 2, 10baseT port, address  00 60 08 9d 9a b5, IRQ 11.
eth0: Setting Rx mode to 1 addresses.
eth1: Setting Rx mode to 0 addresses.
eth1: Setting Rx mode to 1 addresses.


----- ifconfig -----
eth0      Link encap:Ethernet  HWaddr 00:50:04:04:A8:A3 
          inet addr:98.27.66.10  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14196 errors:0 dropped:0 overruns:0 frame:0
          TX packets:472 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0           Interrupt:10 Base address:0x300
eth1      Link encap:Ethernet  HWaddr 00:60:08:9D:9A:B5 
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:895 errors:0 dropped:0 overruns:0 frame:0
          TX packets:794 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0           Interrupt:11 Base address:0x210
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0


----- cat /proc/interrupts -----
 0:      48449   timer
 1:          4   keyboard
 2:          0   cascade
 8:          1 + rtc
10:      14153   3c509
11:        943   3c509
13:          1   math error
14:      14723 + ide0


----- cat /proc/ioports -----
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
01f0-01f7 : ide0
0210-021f : 3c509
0300-030f : 3c509
03bc-03be : lp
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR


----- route -n -----
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        2 eth1
98.27.66.0      0.0.0.0         255.255.254.0   U     0      0        1 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        1 lo
0.0.0.0         98.27.66.1      0.0.0.0         UG    0      0       23 eth0


----- cat /etc/dhcpd.leases | sed s/#.*//g -----
lease 10.0.0.32 {
   starts 1 2009/12/07 15:47:15;
   ends 2 2009/12/08 15:47:15;
   hardware ethernet 00:0f:66:2e:12:97;
   uid 01:00:0f:66:2e:12:97;
   client-hostname "SideshowMel";
}
lease 10.0.0.30 {
   starts 1 2009/12/07 15:30:11;
   ends 2 2009/12/08 15:30:11;
   hardware ethernet 00:11:f5:45:e2:f7;
   uid 01:00:11:f5:45:e2:f7;
   client-hostname "Sideshow-Bob";
}
lease 10.0.0.35 {
   starts 1 2009/12/07 01:20:55;
   ends 2 2009/12/08 01:20:55;
   hardware ethernet 00:17:3f:2d:f1:bc;
   uid 01:00:17:3f:2d:f1:bc;
   client-hostname "kt-laptop";
}
lease 10.0.0.31 {
   starts 0 2009/12/06 20:32:17;
   ends 1 2009/12/07 20:32:17;
   hardware ethernet 00:1d:fe:ac:e8:26;
}


----- uptime -----
 11:45am  up 8 min, load average: 0.32, 0.64, 0.39


----- free -----
        total:    used:    free:  shared: buffers:  cached:
Mem:  64585728 25034752 39550976 44105728  4853760  8429568
Swap:        0        0        0
MemTotal:     63072 kB
MemFree:      38624 kB
MemShared:    43072 kB
Buffers:       4740 kB
Cached:        8232 kB
SwapTotal:        0 kB
SwapFree:         0 kB
Mounted FS:
/dev/root / ext2 rw 0 0
/proc /proc proc rw 0 0
/dev/hda1 /mnt/bootdev ext2 rw 0 0
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 3963      2278      1685  57% /
/dev/hda1               232179     80997    139192  37% /mnt/bootdev


----- ps -----
  Pid   Stat   Parent   Line   Name   Command
  1    S   0      init   init
  2    S   1      kflushd   
  3    S   1      kswapd   
  289    S   1      syslogd   syslogd-r-h-m0
  519    S   1      klogd   klogd-c3
  1469    S   1      update   update
  1555    S   1      dhcpcd   dhcpcd-d-R-t50-c/sbin/dhcpcd.update-hAPUeth0
  2928    S   1      dnsmasq   dnsmasq-RnbfDeq-Q65501-S209.18.47.61-S209.18.47.62-l/etc/dhcpd.leases-sSpringfield-c600
  3068    S   1      dhcpd   dhcpd-qeth1
  3135    S   1      pure-ftpd   pure-ftpd (SERVER)
  3206    S   1      squid   /usr/local/squid/sbin/squid-sD
  3212    S   3206      squid   (squid)-sD
  3235    S   3212      unlinkd   (unlinkd)
  3468    S   1      httpd   /usr/local/apache/bin/httpd-DSSL
  3519    S   1      thttpd_c   thttpd_c-d/wwa-p1082-uroot
  3587    S   3468      httpd   /usr/local/apache/bin/httpd-DSSL
  3588    S   3468      httpd   /usr/local/apache/bin/httpd-DSSL
  3589    S   3468      httpd   /usr/local/apache/bin/httpd-DSSL
  3590    S   3468      httpd   /usr/local/apache/bin/httpd-DSSL
  3593    S   3468      httpd   /usr/local/apache/bin/httpd-DSSL
  3653    S   1      tsaver   tsaver900nice-n19tclock24
  3676    S   1      logrotate   logrotatehda150000500050000
  3680    S   1      servermon   sh/sbin/servermon
  3689    S   1      agetty   /sbin/agetty38400/dev/tty1
  3690    S   1      agetty   /sbin/agetty38400tty2
  3730    S   3680      sleep   sleep1800
  4805    S   3519      usr.cgi   shusr.cgiinfo
  4806    S   4805      thttpd_c   thttpd_c-d/wwa-p1082-uroot
  4816    S   4805      sysinfo   sh/bin/sysinfo
  4817    S   4805      usr.cgi   shusr.cgiinfo
  4819    S   4817      sed   seds/\&/\&/;s/</\</;s/>/\>/
  4921    S   4816      sysinfo   sh/bin/sysinfo
  4922    S   4816      sed   sed/^$/d
  4923    R   4921      ps   sh/bin/ps


----- cat /etc/ppp/opt* -----
asyncmap 0


----- setserial -bg /dev/cua? -----


----- ls -C /pkg/db/install/ -----
apache_1.3.27b_dingetje   italian                   squid-2.5.s12-lightning
dutch                     openssl-0.9.6g-lightning  swedish
english                   patches-042-1
ext2-0.4.2-lewis          perl_5.6.1_dingetje


----- cat /etc/isapnp.cfg |sed 's/#.*//g' -----


----- hardinfo -----
   
processor   : 0
model      : Am5x86-WT
vendor_id   : AuthenticAMD
bogomips   : 66.56
   
MemTotal:     63072 kB
   
   
/dev/lp0 at 0x03bc
   




I guess I need to get a report run from the box when it is screwy.. then get it after I reset it.

Suggestions?

Thanks in advance.
Kalist Shawxo
Junior Member
 
Posts: 25
Joined: Sun Nov 22, 2009 3:17 am

Re: 0.4.2 + Apache = Good, but + Squid = Bad?

Postby Lightning » Mon Dec 07, 2009 9:41 pm

WINSADDR=10.0.0.1 #WINS address

I had not seen this setting before and most likely this is not what is causing your current problem. But it is definitely wrong and should ne removed. You will need to go through the main setup and remove this entry as it should be set blank with no IP address in this setting because FREESCO is NOT your WINS server and can not be your WINS server unless you have Samba install and even then the setting would still be set wrong for that. What this setting is doing is making all of your DHCP clients local machine/URL lookups search for a server that doesn't exist and could cause all kinds of havoc.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: 0.4.2 + Apache = Good, but + Squid = Bad?

Postby Kalist Shawxo » Tue Dec 08, 2009 9:54 am

Thanks Lightning.... I removed the WINS address, and just for the heck of it redid the routing in Squid.... and it did not make any difference.

so I emailed the different reports file at the router, before resetting the Squid config again. and here we go:

Code: Select all
        FREESCO v0.4.2 System Report.
        Generated - Tue Dec  8 09:38:07 EST 2009
System language: english


----- clock -----
Tue Dec  8 09:38:08 2009


----- cat /etc/system.cfg -----
# [System]
ROUTER=ethernet        # dialup/leased/ethernet/bridge
HOSTNAME=APU        #Router name
DOMAIN=Springfield        #Local domain
ENAMSQ=y          #NAT/firewall
STLTH=r                #Stealth or Reject=
NPNG=s                #ICMP responses
NBRG=n                 #Bridging mode
BIGMEM=y         #Command line history
RMDRV=n                #Ram disk
RSRM=n                #Manual ramdisk control
RMSZ=2                #Ramdisk size in MB
SVRS=30,0          #Blank screen,hdd. 0 = off
SSVR="15,tclock,24,ra"        #Screen saver,Name,options. 0 = off
SWPSZ=0                #Swap size. 0 = off
LGSZ=50000,5000,50000        #System,Logins,Info log sizes
SVLG=n                #Save system logs
NBP=y                #Beeps
NBPT=1600,2200        #start, stop
NBPF=y                #Firewall sound
NBPD=y                #DHCP server
NBPDH=y                #DHCP client
NBPL=y                #Login sound
NBPP=y                #New IP sound
NBPPD=y                #PPP down sound
NBPPO=y                #Power off
NMN=n                #Flashing leds
NLGGR=n                #Network monitor
NTOP=n                #Top monitor
NCON=n                #ISP connect time
DCON=n                #RAS connect time
LLED=n                #Link LED
CLRS=y                #Console colors
NPNP=n                #ISA PnP
DFSP=                #Default dialup ISP
RDNLY=n                #Run in ram
EDIT=/bin/edt        #Default editor
NMLCK=y                #NUM lock
# [Log/Debug]
LGDHCP=y        #DHCP server
DHCPLG=y        #DHCP client
LGDNS=y                #DNS
LOGHTTP=y        #HTTP/control
LGCHT=n                #Chat
LGDLD=n                #Diald
LGDLP=n                #Dialup
LGNT=0                #Netmeeting [0-4]
LGPPPD=s        #pppd
LGDNT=n                #Ident
LGFTP=e                #FTP
LGLP=n                 #Printer
LGFR=e                #firewall
# [Services/servers]
NDNS=s                         #DNS Server
DNSCCH=600                #Cache. 0 = disable
NCRN=n                        #Cron daemon
NDHCP=y                 #DHCP server
WINSADDR=                #WINS address
LZTM=86400,172800        #lease-time,max-lease-time
ENAWWW=s                 #HTTP Server
WWWPORT=80                #port
USRWWW=n                #User web pages
RESWWW=n                #Bandwidth
RESVAL=25000                #Bps
ENAWWA=s                 #Control via HTTP
WWAPORT=1082                 #port
CPW=20                        #left width %
CPH=15                        #bottom height %
TIMADDR=pool.ntp.org        #NTP URL, empty = disable
TIMZONE=+0000                #Offset to UTC
ENALPD=n                 #Print Server
LPPORT0=515                #port
NSSHD=n                        #SSH/SFTP server
SSHP=22                        #port
SSHCMD=""        #Extra command line options
NPFWD=y                        #Port forwarding
ENADYNDNS=n                #Dynamic name client
NDNP=y                        #Dyndns local URL
NID=n                        #Ident server
NFTP=s                        #FTP Server
FTPPRT=21                #port
FTPCN=1                #FTP connections
FTPCC=10                        #Concurrent FTP connections
FTPNN=n                        #Anonymous FTP
RTFTP=y                        #allow root
FTPBW=""                #FTP Bandwidth
NRS=n                        #Dialin
SRS=n                        #Silent modem
ENASMTP=y                #Email client
SVRMN=",dns,http,control,ssh,ftp"                #Server monitor
SVRTM=30                        #check time
PKGDOMAIN=http://freescosoft.avaarsani.ca/0.4.x/  #package URL
STST=14671
HOMEURL=http://www.freesco.org/        #Patch URL
PKGDR=/www/packages/0.4.x        #Package save dir
# [Security]
TRSTN0=y                 #Trust net0
TRSTN1=y                 #Trust net1
TRSTMD=n                #Trust dial IN
RNGS=0,0                #Rings login,nologin time
MonTM=""                #Nologin times
TueTM=""
WedTM=""
ThuTM=""
FriTM=""
SatTM=""
SunTM=""
MDI=n                #Load icq
MDD=n                #Load raudio
MDV=n                #Load vdolive
MDQ=n                #Load quake
MDR=n                #Load irc
MDF=y                #Load ftp
MDN=n                #Load netmeeting
XTRAPTS=""        #Stealthed ports
# [Hardware COM Ports]
# [Modems]
# [ diald ]
# [ethernet/leased/printer/ras router]
GATEWAY=98.27.66.1                #Gateway
DNSDDR=209.18.47.61                #Primary DNS
DNSDDR1=209.18.47.62                #Second
DNSDDR2=                #Third
DNSDDR3=                #Fourth
PROXY=""                #HTTP proxy addr[:port]
   
# [Ethernet hardware]
IO0=0x300
IRQ0=10
IO1=0x210
IRQ1=11
   
# [Network 0]
SDHCP=y                                #DHCP client
DHCPDNS=y                        #DNS via DHCP
INTNAME0=eth0                        #Interface
IPADDR0=98.27.66.10                #IP address
NETMASK0=255.255.254.0           #Netmask
NETWORK0=98.27.66.0                #Network address
BRDCAST0=255.255.255.255           #Broadcast address
IPRANGE0=""        #DHCP server IP range
# [Network 1]
INTNAME1=eth1                        #Interface
IPADDR1=10.0.0.1                #IP address
NETMASK1=255.255.255.0           #Netmask
NETWORK1=10.0.0.0                #Network address
BRDCAST1=10.0.0.255           #Broadcast address
IPRANGE1="10.0.0.30 10.0.0.39"        #DHCP server IP range


----- cat /etc/live.cfg -----
BOOTMOD=
VERSION=0.4.2
BOOTDEV=hda1
BOOTIME="Thu Dec  8 09:32:13  1994"
IPADDR0=98.27.66.10
NETMASK0=255.255.254.0
BRDCAST0=255.255.255.255
NETWORK0=98.27.66.0
GATEWAY=98.27.66.1
DNSDDR=209.18.47.61
DNSDDR1=209.18.47.62


----- cat /etc/dhcpc/dhcpcd-eth0.info -----
IPADDR=98.27.66.10
NETMASK=255.255.254.0
NETWORK=98.27.66.0
BROADCAST=255.255.255.255
GATEWAY=98.27.66.1
HOSTNAME='APU'
DOMAIN='twmi.rr.com'
DNS=209.18.47.61,209.18.47.62
DHCPSID=10.57.0.1
DHCPGIADDR=10.57.0.1
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:50:04:04:A8:A3
DHCPSHADDR=00:19:2F:E5:DF:05
DHCPSNAME=''
LEASETIME=3600
RENEWALTIME=1800
REBINDTIME=3150
INTERFACE='eth0'
CLASSID='Linux 2.0.40 i486'
CLIENTID=00:50:04:04:A8:A3


----- cat /etc/portfw.cfg | sed s/\#.*//g -----
 


----- cat /etc/restrict.cfg | sed s/\#.*//g -----


----- sed -n 1,/\#@@/P /etc/chat.pwd -----
ISPNAME=


----- lsmod -----
Module                Pages                Used by
ip_masq_ftp        1                0
3c509.e-n          2                2


----- ls -l /boot/drv/ -----
-rw-r--r--    1 root     root         4556 Feb  6  2009 3c509.gz


----- dmesg | sed -n /eth/P -----
eth0: 3c509 at 0x300 tag 1, 10baseT port, address  00 50 04 04 a8 a3, IRQ 10.
eth1: 3c509 at 0x210 tag 2, 10baseT port, address  00 60 08 9d 9a b5, IRQ 11.
eth0: Setting Rx mode to 1 addresses.
eth1: Setting Rx mode to 0 addresses.
eth1: Setting Rx mode to 1 addresses.


----- ifconfig -----
eth0      Link encap:Ethernet  HWaddr 00:50:04:04:A8:A3
          inet addr:98.27.66.10  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9409 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113 errors:0 dropped:0 overruns:0 carrier:1
          collisions:1           Interrupt:10 Base address:0x300
eth1      Link encap:Ethernet  HWaddr 00:60:08:9D:9A:B5
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:300 errors:0 dropped:0 overruns:0 frame:0
          TX packets:179 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0           Interrupt:11 Base address:0x210
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0


----- cat /proc/interrupts -----
 0:      36737   timer
 1:         66   keyboard
 2:          0   cascade
 8:          2 + rtc
10:       9412   3c509
11:        300   3c509
13:          1   math error
14:      15031 + ide0


----- cat /proc/ioports -----
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
01f0-01f7 : ide0
0210-021f : 3c509
0300-030f : 3c509
03bc-03be : lp
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR


----- route -n -----
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        2 eth1
98.27.66.0      0.0.0.0         255.255.254.0   U     0      0        1 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
0.0.0.0         98.27.66.1      0.0.0.0         UG    0      0       10 eth0


----- cat /etc/dhcpd.leases | sed s/#.*//g -----


----- uptime -----
  9:38am  up 6 min, load average: 1.40, 1.13, 0.51


----- free -----
        total:    used:    free:  shared: buffers:  cached:
Mem:  64585728 26124288 38461440 44818432  4853760  8695808
Swap:        0        0        0
MemTotal:     63072 kB
MemFree:      37560 kB
MemShared:    43768 kB
Buffers:       4740 kB
Cached:        8492 kB
SwapTotal:        0 kB
SwapFree:         0 kB
Mounted FS:
/dev/root / ext2 rw 0 0
/proc /proc proc rw 0 0
/dev/hda1 /mnt/bootdev ext2 rw 0 0
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 3963      2263      1700  57% /
/dev/hda1               232179     80981    139208  37% /mnt/bootdev


----- ps -----
  Pid        Stat   Parent        Line        Name        Command
  1         S        0                init        init
  2         S        1                kflushd       
  3         S        1                kswapd       
  289         S        1                syslogd        syslogd-r-h-m0
  517         S        1                klogd        klogd-c3
  1465         S        1                update        update
  1554         S        1                dhcpcd        dhcpcd-d-R-t50-c/sbin/dhcpcd.update-hAPUeth0
  2924         S        1                dnsmasq        dnsmasq-RnbfDeq-Q65424-S209.18.47.61-S209.18.47.62-l/etc/dhcpd.leases-sSpringfield-c600
  3063         S        1                dhcpd        dhcpd-qeth1
  3126         S        1                pure-ftpd        pure-ftpd (SERVER)
  3199         S        1                squid        /usr/local/squid/sbin/squid-sD
  3205         S        3199                squid        (squid)-sD
  3228         S        3205                unlinkd        (unlinkd)
  3543         S        1                httpd        /usr/local/apache/bin/httpd-DSSL
  3594         S        1                thttpd_c        thttpd_c-d/wwa-p1082-uroot
  3672         S        3543                httpd        /usr/local/apache/bin/httpd-DSSL
  3673         S        3543                httpd        /usr/local/apache/bin/httpd-DSSL
  3674         S        3543                httpd        /usr/local/apache/bin/httpd-DSSL
  3678         S        3543                httpd        /usr/local/apache/bin/httpd-DSSL
  3679         S        3543                httpd        /usr/local/apache/bin/httpd-DSSL
  3726         S        1                tsaver        tsaver900nice-n19tclock24
  3744         S        1                logrotate        logrotatehda150000500050000
  3754         S        1                servermon        sh/sbin/servermon
  3764         S        1        tty1        ile        ile
  3765         S        1                agetty        /sbin/agetty38400tty2
  3815         S        3754                sleep        sleep1800
  4804         S        3764        tty1        sh        sh
  4822         S        4804        tty1        setup        sh/sbin/setup
  5302         S        4822                email        sh/bin/email-report
  5315         S        1                cip        sh/bin/cip/dev/tty1
  5316         S        5302                email        sh/bin/email-report
  5450         S        5316                email        sh/bin/email-report
  5451         S        5316                sed        sed/^$/d
  5453         R        5450                ps        sh/bin/ps


----- cat /etc/ppp/opt* -----
asyncmap 0


----- setserial -bg /dev/cua? -----


----- ls -C /pkg/db/install/ -----
apache_1.3.27b_dingetje   italian                   squid-2.5.s12-lightning
dutch                     openssl-0.9.6g-lightning  swedish
english                   patches-042-1
ext2-0.4.2-lewis          perl_5.6.1_dingetje


----- cat /etc/isapnp.cfg |sed 's/#.*//g' -----


----- hardinfo -----
       
processor        : 0
model                : Am5x86-WT
vendor_id        : AuthenticAMD
bogomips        : 66.56
       
MemTotal:     63072 kB
       
       
/dev/lp0 at 0x03bc


Code: Select all
----- : netmon : -----
       
       
----- cat /var/log/netmon.log -----
       
       
----- : Interfaces : -----
       
       
----- ifconfig -----
eth0      Link encap:Ethernet  HWaddr 00:50:04:04:A8:A3
          inet addr:98.27.66.10  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10220 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141 errors:0 dropped:0 overruns:0 carrier:1
          collisions:1           Interrupt:10 Base address:0x300
eth1      Link encap:Ethernet  HWaddr 00:60:08:9D:9A:B5
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0           Interrupt:11 Base address:0x210
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
       
       
----- : Routing : -----
       
       
----- route -n -----
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        2 eth1
98.27.66.0      0.0.0.0         255.255.254.0   U     0      0        1 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
0.0.0.0         98.27.66.1      0.0.0.0         UG    0      0       10 eth0
       
       
----- : Firewall/Input : -----
       
       
----- ipfwadm -I -lne -----
IP firewall input rules, default policy: reject
 pkts bytes type  prot opt  tosa tosx ifname  ifaddress       source               destination          ports
    0     0 rej   tcp  ---o 0xFF 0x00 eth0    0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 443
    0     0 rej   tcp  ---o 0xFF 0x00 eth0    0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 8000
    0     0 rej   tcp  ---o 0xFF 0x00 eth0    0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 3128
    0     0 rej   udp  ---o 0xFF 0x00 eth0    0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 3128
    6   778 acc   tcp  ---- 0xFF 0x00 *       0.0.0.0         10.0.0.0/24          10.0.0.1             * -> 80
   44 12865 acc/r tcp  ---- 0xFF 0x00 *       0.0.0.0         10.0.0.0/24          0.0.0.0/0            * -> * => 3128
   16  1316 acc   all  ---- 0xFF 0x00 lo      0.0.0.0         0.0.0.0/0            0.0.0.0/0            n/a
    0     0 rej   icmp ---- 0xFF 0x00 eth0    0.0.0.0         0.0.0.0/0            255.255.255.255      *
    0     0 acc   all  ---- 0xFF 0x00 eth1    0.0.0.0         0.0.0.0/0            255.255.255.0        n/a
   36  3168 acc   all  ---- 0xFF 0x00 eth1    0.0.0.0         0.0.0.0/0            0.0.0.0/0            n/a
    0     0 acc   icmp ---- 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            0
    0     0 rej   icmp ---- 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            *
    0     0 acc   tcp  ---- 0xFF 0x00 *       0.0.0.0         209.18.47.61         0.0.0.0/0            53 -> *
    0     0 acc   tcp  ---- 0xFF 0x00 *       0.0.0.0         209.18.47.62         0.0.0.0/0            53 -> *
    0     0 rej   tcp  b--o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            53 -> *
    0     0 rej   tcp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 80
    0     0 rej   tcp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 1082
    0     0 rej   tcp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 21
    0     0 rej   tcp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 514
    5   594 acc   udp  ---- 0xFF 0x00 *       0.0.0.0         209.18.47.61         0.0.0.0/0            53 -> *
    0     0 acc   udp  ---- 0xFF 0x00 *       0.0.0.0         209.18.47.62         0.0.0.0/0            53 -> *
    0     0 rej   udp  b--o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            53 -> *
    0     0 rej   udp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 80
    0     0 rej   udp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 1082
    0     0 rej   udp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 21
    0     0 rej   udp  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            * -> 514
    0     0 rej   all  ---o 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            10.0.0.0/24          n/a
    0     0 rej   all  ---o 0xFF 0x00 *       0.0.0.0         10.0.0.0/24          0.0.0.0/0            n/a
  112 18056 acc   all  ---- 0xFF 0x00 *       0.0.0.0         0.0.0.0/0            0.0.0.0/0            n/a
       
       
----- : Firewall/Forward : -----
       
       
----- ipfwadm -F -lne -----
IP firewall forward rules, default policy: reject
 pkts bytes type  prot opt  tosa tosx ifname  ifaddress       source               destination          ports
    0     0 acc/m all  ---- 0xFF 0x00 eth0    0.0.0.0         10.0.0.0/24          0.0.0.0/0            n/a
       
       
----- : Firewall/Active Masquerading entries : -----
       
       
----- ipfwadm -M -ln -----
IP masquerading entries
       
       
----- : Port forwarding : -----
       
       
----- ipportfw -L -----
Prot Local Addr/Port > Remote Addr/Port                       
       
       
----- : IP leases : -----
       
       
----- cat /etc/dhcpd.leases | sed s/#.*// -----
     
       
----- : Bridging : -----
       
       
----- brcfg -----
bridging is DISABLED         debugging is DISABLED
bridge id                0x0001 00:50:04:04:a8:a3
designated root                0x0001 00:50:04:04:a8:a3
bridge max age                20        max age                        20
bridge hello time        2        hello time                2
bridge forward delay        15        forward delay                15
root path cost                0        root port                0
flags                        NONE
--- port stats ---
port 1        port id 0x0001        port state        FORWARDING (0x3)
designated root                0x0001 00:50:04:04:a8:a3
designated bridge        0x0001 00:50:04:04:a8:a3
path cost                100        designated cost                0
designated port                1        flags                        NONE
port 2        port id 0x0002        port state        FORWARDING (0x3)
designated root                0x0001 00:50:04:04:a8:a3
designated bridge        0x0001 00:50:04:04:a8:a3
path cost                100        designated cost                0
designated port                128        flags                        NONE
       
       
----- : ARP : -----
       
       
----- arpf -----
SideshowMel.Springfield (10.0.0.32) at 00:0F:66:2E:12:97 [ether] on eth1
cpe-98-27-66-1.mi.res.rr.com (98.27.66.1) at 00:19:2F:E5:DF:05 [ether] on eth0
Sideshow-Bob.Springfield (10.0.0.30) at 00:11:F5:45:E2:F7 [ether] on eth1


and here are the SQUID entries in the recent messages while it was not working.

Code: Select all
Dec  8 04:34:13 - squid[3199]: Squid Parent: child process 3205 started
Dec  8 04:34:13 - squid[3205]: Starting Squid Cache version 2.5.STABLE12 for i686-pc-linux-gnulibc1...
Dec  8 04:34:13 - squid[3205]: Process ID 3205
Dec  8 04:34:13 - squid[3205]: With 256 file descriptors available
Dec  8 04:34:13 - squid[3205]: DNS Socket created at 0.0.0.0, port 1027, FD 7
Dec  8 04:34:13 - squid[3205]: Adding nameserver 127.0.0.1 from /etc/resolv.conf
Dec  8 04:34:15 - squid[3205]: Unlinkd pipe opened on FD 12
Dec  8 04:34:15 - squid[3205]: Swap maxSize 102400 KB, estimated 7876 objects
Dec  8 04:34:15 - squid[3205]: Target number of buckets: 393
Dec  8 04:34:15 - squid[3205]: Using 8192 Store buckets
Dec  8 04:34:15 - squid[3205]: Max Mem  size: 8192 KB
Dec  8 04:34:15 - squid[3205]: Max Swap size: 102400 KB
Dec  8 04:34:16 - squid[3205]: Rebuilding storage in /usr/local/squid/var/cache (DIRTY)
Dec  8 04:34:16 - squid[3205]: Using Least Load store dir selection
Dec  8 04:34:16 - squid[3205]: Set Current Directory to /usr/local/squid/var/cache
Dec  8 04:34:19 - squid[3205]: Loaded Icons.
Dec  8 04:34:19 - squid[3205]: Accepting HTTP connections at 127.0.0.1, port 3128, FD 14.
Dec  8 04:34:19 - squid[3205]: Accepting HTTP connections at 10.0.0.1, port 3128, FD 15.
Dec  8 04:34:19 - squid[3205]: Accepting ICP messages at 0.0.0.0, port 3130, FD 16.
Dec  8 04:34:19 - squid[3205]: WCCP Disabled.
Dec  8 04:34:19 - squid[3205]: Pinger socket opened on FD 18
Dec  8 04:34:20 - squid[3205]: Ready to serve requests.
Dec  8 04:34:20 - squid[3205]: Done reading /usr/local/squid/var/cache swaplog (37 entries)
Dec  8 04:34:20 - squid[3205]: Finished rebuilding storage from disk.
Dec  8 04:34:20 - squid[3205]:        37 Entries scanned
Dec  8 04:34:20 - squid[3205]:         0 Invalid entries.
Dec  8 04:34:20 - squid[3205]:         0 With invalid flags.
Dec  8 04:34:20 - squid[3205]:        37 Objects loaded.
Dec  8 04:34:20 - squid[3205]:         0 Objects expired.
Dec  8 04:34:20 - squid[3205]:         0 Objects cancelled.
Dec  8 04:34:20 - squid[3205]:         0 Duplicate URLs purged.
Dec  8 04:34:20 - squid[3205]:         0 Swapfile clashes avoided.
Dec  8 04:34:20 - squid[3205]:   Took 7.2 seconds (   5.1 objects/sec).
Dec  8 04:34:20 - squid[3205]: Beginning Validation Procedure
Dec  8 04:34:20 - squid[3205]:   Completed Validation Procedure
Dec  8 04:34:20 - squid[3205]:   Validated 37 Entries
Dec  8 04:34:20 - squid[3205]:   store_swap_size = 299k
Dec  8 04:34:22 - squid[3205]: storeLateRelease: released 0 objects
Dec  8 04:34:26 - dnsmasq[2924]: query january6th2000.com from 127.0.0.1
Dec  8 04:34:26 - dnsmasq[2924]: forwarded january6th2000.com to 209.18.47.61
Dec  8 04:34:26 - dnsmasq[2924]: reply january6th2000.com is 64.118.88.20
Dec  8 04:34:26 - squid[3205]: icmpRecv: recv: (111) Connection refused
Dec  8 04:34:26 - squid[3205]: Closing Pinger socket on FD 18


Hopefully this sheds some light on the problem.

thanks in advance.
Kalist Shawxo
Junior Member
 
Posts: 25
Joined: Sun Nov 22, 2009 3:17 am

Re: 0.4.2 + Apache = Good, but + Squid = Bad?

Postby Kalist Shawxo » Wed Dec 09, 2009 10:11 am

and now this morning I get home, DHCP and control panel are not working... nothing unusual on the FREESCO box. checked all the settings, reboot and DHCP started working but I still can't access the control panel from my network. no changes made since the last msg.
Kalist Shawxo
Junior Member
 
Posts: 25
Joined: Sun Nov 22, 2009 3:17 am

Re: 0.4.2 + Apache = Good, but + Squid = Bad?

Postby Lightning » Wed Dec 09, 2009 8:55 pm

I do not have a huge amount of free time, but I have not forgotten about this problem and I will try and get an answer by the end of this next weekend. As for when specific services quit running you can manually restart them very easily with commands such as

rc_control restart
rc_dhcpd restart
rc_dns restart

Also almost like a reboot you can use "rc_main restart", but it is a bit faster because the system doesn't have to completely shut down.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: 0.4.2 + Apache = Good, but + Squid = Bad?

Postby Kalist Shawxo » Thu Dec 10, 2009 3:55 am

thanks lightning, I do appreciate any and all time you are able to give.

well, I couldn't login to the control panel, even after reboot... but now 3 hrs later with no changes, it just let me log in. so I am shelving that concern at the moment.
Kalist Shawxo
Junior Member
 
Posts: 25
Joined: Sun Nov 22, 2009 3:17 am


Return to 3rd Party Package Support for FREESCO v0.4.x

Who is online

Users browsing this forum: No registered users and 0 guests

cron