Category Archives: Server Information

CRAB server firewall.iptables now fixed, so it will restart without a reboot.

For those of you familiar with my Linux server, y’all know that I run many custom BASH, Perl, and Python scripts.  We are going to discuss today my iptables firewall script, or actually the fact that I took the time to repair it.   Since upgrading the server to Fedora 20 in September 2014, my firewall script would start fine, but would choke on restarting, reloading, or running it over itself.  The end result would be that the server would sever all ports with the outside, effectively taking it down, needing a reboot to get it back online.  This was a real PITA, since I couldn’t really make any changes to the firewall without reboot.  I thought it was an end result of the OS changing from SysV init scripts to a systemd system.  How wrong I was….  The cause was simply a typo that I made while adding a feature, and a ‘done’ without a ‘while’ and a ‘fi’ without an ‘if’ stopped the script from accepting the restart and reload argument.  Most of the iptables rulesets were created before this typo, so it gave the ‘appearance’ that it was working properly.  Debugging a script of this size is a fairly daunting task, as the main firewall script is a healthy 50 pages, and its configuration file (one of a half dozen helper files) is about 7 pages long.  Since I’ve had a few questions about this firewall, I’ll share it with everybody…..

Download links are only viewable to logged in users.  All the other helper files, as well as these are all available upon request.  If you are a logged in user, and downloading these files, remove the .txt extension from the config and main files….

This is the screen information if the VERBOSE variable is set to 1 (Select the pop-out gadget to see this properly formatted)

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

This is the configuration file that allows for easy firewall config.     (Select the pop-out gadget to see this properly formatted)

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

This is the MAIN iptables firewall script that should be run at start.  (Select the pop-out gadget to see this properly formatted)

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

All in all, it was a fairly productive week off.  I have a few other minor syntax errors to chase down, but the firewall is operating within normal parameters…..

 

New server IP address

Due to the migration to Frontier from ATT, the server’s static IP address has changed from 108.89.65.174.  It’s new IP address is:  32.220.54.46.

Also, the web pages at cap.vapor.com have been migrated to cap.crabradio.net, so that they fall fully under the crabradio.net domain, owned by me.

The subdomain webpage still has a cap.vapor.com graphic on it, but I’m hoping my friend The Moonshiner can come up with a similar graphic to just drop in.  😉

The only problems that you will encounter is if you attempt to load cap.vapor.com, as that dns is dead and unlikely to be updated.

I’m still waiting for the rest of the arcnet irc admins to update the US1 server IP address, and I shall reconnect us1.arcnet-irc.org to the rest of the servers.

Thanks for your patience.

Server sendmail and icecast info

Well, I just noticed that the podcast and regular blog weren’t sending out email notifications any longer.  Pretty easy to track down.  For some reason, sendmail was not running.  Even easier to fix.  I simply did (as root):

# systemctl start sendmail

Tested the podcast’s php mail function, and all is well.

Something else that I’ve been chewing on for awhile and finally whipped a couple weeks ago.  I wanted my icecast server and IceS streaming source to behave like centovacast, with a ‘live’ mountpoint that ‘takes control’ of the stream…..  All I had to do is add these lines to /etc/icecast.xml:

<mount>
<mount-name>/stream</mount-name>
<fallback-mount>/live</fallback-mount>
<fallback-override>1</fallback-override>
<hidden>1</hidden>
<public>0</public>
</mount>

<mount>
<mount-name>/live</mount-name>
<fallback-mount>/autostream</fallback-mount>
<fallback-override>1</fallback-override>
<hidden>1</hidden>
<public>0</public>
</mount>

<mount>
<mount-name>/autostream</mount-name>
<fallback-override>1</fallback-override>
<hidden>1</hidden>
<public>0</public>
</mount>

Then, I just had to set IceS to send to the autostream mountpoint, instead of stream.  So, now, in absence of live, when you connect to the normal stream mountpoint, you fallback to live, then fallback to autostream.  The fallback-override directive allows a live source to ‘pull back’ listeners connected to the autostream.  😉

 

10.5 GB Bootleg upload

I am currently in the process of crab_radio_01sending a huge upload of concert bootlegs to the server.  See what happens when I get a day off from work?  😉  This should include everything that I have broadcasted on Happy Hour – CRAB Radio Live since the beginning of the year and more.  Within the next day or two, these concerts ought to appear in the playlist after the playlist gets automatically rewritten.  Here are the bootlegs that are being added:

4 Non Blondes – 1993-11-11 – Milano, Italy
ACDC – 1978-10-30 – Nijemgen, Holland FM
ACDC – 1979-09-08 – Warnors Theatre, Fresno
ACDC – 1979-11-12 – No Stop Signs – Amsterdam
Bad Company – 1976 – Live Albuquerque
Bad Company – 1979-06-29 -Capital Centre, Landover
Black Sabbath – 1974-02-21 – Providence
Black Sabbath 1980-11-16 Tokyo – Evil in the Evening
Black Sabbath 1980.11.18 The Day Of Tony’s Illness – Tokyo
Blue Oyster Cult – 1980-09-08 – KSAN FM Live Broadcast
Blue Oyster Cult – 1981-12-15 – Country Club Reseda
Boston – 1976-09-27 – Agora Ballroom
BTO – 1984-07-01- Harpo’s, Detroit, MI
Crosby, Stills, Nash & Young – 1969-12-14 – Detroit 12.14.1969
Deep Purple – 1991-08-21 – Sao Paulo, Brazil (Slaves And Kings – BFOC)
Deep Purple.- 1991-08-21 – Sao Paulo Brasil
Delta Moon – 2005-08-27 – Live Smith’s Old Bar, Atlanta Ga, August 27, 2005
Delta Moon – 2011-05-04 – Live Wendelstein Germany 2011-05-04
Foghat – 1974 – WPLR FM Dallas, TX
Foghat – 1976 – KBFH
Foghat – 1980-07-18 – Chicago
Foghat – 1981 – International Amphitheater, Chicago
Girlschool – 1982-05-06 – Glasgow
Girlschool – 1984-01-12 – King Biscuit Flower Hour Presents
Grand Funk – 1982-09-06 – What_s_Funk_Lives
Grand Funk Railroad – 1971-12-07 – Live at University of Hawaii (12.07.1971)
Grand Funk Railroad – 1972 -12-23 – Madison Square Garden 110K
Grand Funk Railroad – 1972-12-23 – Madison Square Garden 320K
Grand Funk Railroad – 1972-12-23 – In Concert Madison Square Garden (1972.12.23)
Grand Funk Railroad – 1972-12-23 – In Concert MSG 224K
Heart – 1978-03-18 – California Jam II
Heart – 1979-01-26 Burn to the Wick – Passaic NJ
Heart – 1979-08-04-05 Heart & Soul – Kanagawa
Jimi Hendrix – Hilton Hotel, Washington, 10 March 1968 (CD & Covers)
Judas Priest – 1981-06-21 – Breaking The Law
Judas Priest – 1983-12-17 – Dortmund Germany
Kiss – 1976-09-06 – Toronto, Canada 1976
Led Zeppelin – 1970-03-21 – Pure Blues
Led Zeppelin – 1973-01-22 – Live At Southampton University
Led Zeppelin – 1980-06-22 – Conquer Europe
new3.txt
Pat Travers Band – 1980-04-30 – Detroit, Michigan 04.30.1980
Pat Travers Band – 1980-05-25 – San Francisco
Pat Travers Band – 1982 – Nassau Coliseum
Pink Floyd – 1968.06.25 – My Uncle Is Sick Because The Highway Is Green
Pink Floyd – 1971.10.17 – Wind And Seabirds – San Diego
Pink Floyd – 1972 – The Complete Rainbow Tapes 8CD set
Pink Floyd – 1977.07.06 – Roar Ends – Olympic Stadium, Montreal, Quebec
Pink Floyd – 1981.02.18 – The Sixth German Show – Dortmund – The Wall Live
Rainbow.- 1982 – Live Between The Eyes
Rush – 1978-11-20 – Brainwaves
Rush – 1980-02-11_13 – Saint Louis ’80 Remaster
Rush – 1992-06-14 – Because It Happens
Scorpions – 1993-10-16 – Munich (FM Broadcast Master)
The Runaways – 1976 – ForeverLost – Palladium NY
The Runaways – 1976-07-16 – Live at The Agora 1976
The Runaways – 1978-01-07 – Wasted – The Palladium New York 1978
The Who – 1989-06-27 – Tommy at Radio City Music Hall
Triumph – 1979-08-19 – Chicago 79
Triumph – 1982 – Ottawa82
Triumph – 1984-04-10 – Precious Metal Virtuoso (Dallas84)
Triumph -OrlandoFL82
Wolfmother – 2005-10-15 – Rising Sun – Auckland, New Zealand
Wolfmother – 2011-06-03 – Nurburgring Germany
ZZ Top – 2008-07-18 – Rot Hod Twingo

** I know that I’ve added a few Grand Funk MSG bootlegs.  They are all the same date, but have different coverart and bitrates. **

(Stay tuned for more additions)  😉