Berkeley CSUA MOTD:Entry 26234
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2002/10/17-18 [Computer/SW/Unix, Computer/SW/Security] UID:26234 Activity:insanely high
10/17   Is there a really easy way to forward all port 80 packets to another
        machine? I want to migrate my web (but not mail/smtp/etc) packets to
        a new machine. I don't want any sort of HTTP redirects because I want
        the transition to be "seemless". Does my question even make sense?
                              \_ seamless
        \_ Any firewall software can do this.  Or you can point the DNS
           name at your new web server and use MX'es to keep the mail on
           the existing server.  Or use mod_rewrite.  -tom
           \- writing a generic "port forwarder" to listen on localhost:tcp/###
           and fwd that to A.B.C.D:### is pretty straght forward programming
           exercise. in fact it is possible ssh can do it for you. i have a
           tool i suppose i can send you which forwarded the pop protocol
           but it should work for WEEB by just changing the port number.
           [all WEEB is tcp, right?]. i seem to remember after looking at a
           breakin there was some crackerware to do this too. --psb
                                  \ are you calling nc "crackerware"?
           \_ This is what I was going to do. Either this or just use ssh to
              do the forwarding until I complete the migration.
              do the forwarding until I complete the migration. But I was
              hoping that someone had already written something (or gotten
              netcat to work as such) so that I don't reinvent the wheel...
              and don't have to worry about implementing error handling and
              so forth.
        \_ DNS!  Why does no one use DNS for this stuff?  The world wasn't
           meant to be hard coded IPs.  They made DNS for a reason.  You don't
           need clunky firewall kludges if you made proper use of DNS.  You
           wannabe sysadmins are getting more dangerous by the day.  Please
           tell me this isn't a commercial site.
           \_ because dns wont forward port 80 packets.  DNS will send all
              packets to that hostname elsewhere.  This is why a smart admin
              will point several names at the same host, each name for each
              service on the host, and then they can move the ip in the name
              for that service without affecting the other services.  I.e.
              csua www service is 'www.csua',  not 'soda.csua' (even those two
              names point to the same IP), so we can move www service if
              necessary without screwing other services.
              If you weren't so smart, firewall-NAT /packet forwarding/
              is your only option. -ERic
              \_ Thank you for the description of "proper use of DNS" as
                 mentioned above.  Anyone who doesn't know that DNS doesn't
                 forward packets needs to give up the root shell.
           \_ DNS switches are not "seemless".  Even if you have your TTL set
              properly, there is a whole world of improperly set up DNS servers
              (and microsoft DNS clients that mad-cache) that will not get up-
              dated the instant you want them to.  (Of course, just leaving the
              service up at site 1 for a while is probably better than port
              forwarding everything with good ol' nc  -The SysAdmin.
              \_ Gosh, you mean you actually figured out how to do a seamless
                 service migration with DNS?  Wow.  That was hard, huh?
           \_ 1) You are a dumbass, as everyone else already pointed.
              2) Even if what you said were correct (which it isn't), have you
                 considered the possibility that some people might be hard-
                 coding the IP's?
              \_ 1) No one said any such thing.  Learn to read.
                 2) It's correct and anyone who hard coded the IP's is a total
                    moron at step zero and shouldn't have root which was
                    already addressed earlier.  If you could read, you'd have
                    read that, too.
                 3) Learn to read.  Thanks.
              \_ [ inane baiting deleted. ]
        \_ OP here. Here's my solution:
        www stream tcp nowait nobody /usr/local/bin/nc nc my.remote.host 80
        im reposting my solution for the third time:
        tcpserver 0 80 nc ncc 80
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2013/10/24-2014/2/5 [Academia/Berkeley/CSUA/Motd, Computer/SW] UID:54746 Activity:nil
9/26    I remember there was web version of the motd with search function
        (originally due to kchang ?).  The last time I used it it was hosted
        on the csua website but I can't remember its url (onset of dementia?)
        now. Can somebody plz post it, tnx.
        \_ http://csua.com
           \_ for some reason I couldn't log in since Sept and the archiver
	...
2013/10/28-2014/2/5 [Computer/SW/Database] UID:54751 Activity:nil
10/28   Oracle software to blame for Obamacare website debacles:
        http://www.forbes.com/sites/theapothecary/2013/10/14/obamacares-website-is-crashing-because-it-doesnt-want-you-to-know-health-plans-true-costs
        \_ Larry Ellison is a secret Tea Party supporter.
           Most of this article is bunk, btw. Boy are the Republicans
           getting desperate.
            \_ Umm, no.  Larry Ellison is a not so secret fascist.
	...
2013/12/13-2014/2/5 [Computer/SW/Languages/Web] UID:54757 Activity:nil
12/17   http://axonflux.com/5-quotes-by-the-creator-of-php-rasmus-lerdorf
        Why I love PHP.
12/17
 _________________________________________
/ You will pay for your sins. If you have \
| already paid, please disregard this     |
	...
2012/9/20-11/7 [Computer/SW/Unix, Finance/Investment] UID:54482 Activity:nil
9/20    How do I change my shell? chsh says "Cannot change ID to root."
        \_ /usr/bin/chsh does not have the SUID permission set. Without
           being set, it does not successfully change a user's shell.
           Typical newbie sys admin (on soda)
           \_ Actually, it does: -rwsr-xr-x 1 root root 37552 Feb 15  2011 /usr/bin/chsh
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2012/2/9-3/26 [Computer/SW/Security, Computer/SW/Unix] UID:54305 Activity:nil
2/9     Reminder: support for mail services has been deprecated for *several
        years*. Mail forwarding, specifically .forward mail forwarding, is
        officially supported and was never deprecated.
        \_ There is no .forward under ~root.  How do we mail root and how do
           we get responses?
           \_ root@csua.berkeley.edu is and always has been an alias.
	...
2011/9/14-12/28 [Computer/SW/Unix] UID:54172 Activity:nil
9/12    We've restored CSUA NFS to something vaguely resembling normal
        functionality -- plus, with some luck, we should now have something
        vaguely resembling normal uptime, too!  Ping root@csua.org if you
        notice any problems.  --jordan
--------------------------------------------------------------------------------
        \_  Oh, and http://irc.CSUA.Berkeley.EDU is online again.
	...
2011/11/16-12/28 [Academia/Berkeley/CSUA, Computer/HW] UID:54230 Activity:nil
11/16   We'll be taking all CSUA machines offline in the near future for a Soda
        Hall server room reorganization (we're being moved to a neighboring
        server cabinet).  Downtime will hopefully be minimal.  --jordan
        \_ Thanks for all your work keeping the machines running!  It's
           been awesome having soda actually working again.
        \_ Update:  this is tentatively scheduled for Saturday afternoon.
	...
2011/6/5-8/27 [Computer/HW/Memory] UID:54127 Activity:nil
6/5     In an effort to stabilize our services, we'll be rebuilding parts of
        the CSUA infrastructure over the course of this summer.  To give us
        some wiggle room, I've temporarily decreased soda's allocated RAM from
        8GB to 2GB.  If you need to run something that requires large amounts
        of memory, please send mail to root@csua.org and we'll try to
        accommodate your request.  --jordan
	...
2011/8/9-27 [Computer/SW/Editors/Emacs, Academia/Berkeley/CSUA] UID:54162 Activity:nil
8/9     So I just found out that an old college friend of mine lost her
        four month old daughter to SIDS. What is the correct response here?
        \_ "Did she sleep with her belly?" and "Did you breastfeed?"
        \_ try this joke:
           How do you make a dead baby float?
           ˙ʎqɐq pɐǝp ÉŸo sdooÉ”s oʍʇ puɐ ɹÇ\
	...