@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<^Briago^> well i guess i'll go with raid-1 anyway so that i still have hot swap as an option...
<^Briago^> thanks all
<howto> There's nothing ***ier than a Cappucino
<Leusent> how about a naked woman?
<howto> teamwork
<howto> ow hey! that was my spare ear :<
<Leusent> who turned this bot into retard mode?
<howto> the Kazon
<Leusent> onto*
<thun> im doing a backup from a linux box with samba... once i copy the windows files over to the linux box they get a new current date tag. How can i preserve the windows date field during the samba backup?
<Leusent> try tarballing them
<thun> well i know this isnt fool proof but i was goning to use the date stamps to see which file needed to be backed up... can i do that once they have been tarballed?
<Leusent> well if the timestamps are appearing properly on the samba mounted filesystem, then you can use find to determine which files need to be backed up (by looking on the windows share) and tarball them then
<Leusent> try find -mtime 1 /mnt/sambamount
<Leusent> for files modified in the last 24 hours
<Leusent> (I think thats the proper find syntax)
<thun> ty
<thun> just curios also... if wanted to pipe the results of the find -mtime into a cp command what would be the syntax?
<thun> find /mnt/samba -mtime 1 | cp ? ?
<Leusent> I don't know what the syntax would be off the top of my head, sorry
<Leusent> I know that some simple syntax exists to use mtime to find files and tar them
<thun> i tried find /mnt/samba -mtime 1 | cp /my/dest but that doesnt work
<thun> yah i dont want to use tar for this
<Leusent> *shrug*
<Leusent> sorry, I don't know
<thun> np tnx
<inv_arp[w> thun: find /mnt/samba -mtime 1 | xargs -i_ cp _ /wherever/dir
<thun> tyty
<thun> ok this is coming along good thanks guys... how do i force cp to create and dirs it might need so i can maintane dir structure?
<n00m> cp -r copies directories...
<thun> well i have a list and a full path from the source but the dir tree doesnt exist no the destination
<thun> i tried -f but that doesnt seem to be working
<smithzv> Are there any standardized tools for creating a bash like command line interface to a program (with perhaps command history) similar to what yacc and lex do for parsing?
<thun> is there a cleaner way to add an entry to /var/log/messages than using like echo "" > /var/log/messages from a bash script?
<Allometry> anyone available to help with an SSH issue?
<cmang> just ask your question and if someone knows the answer, they'll let you know. :)
<Allometry> K... I'm trying to setup an SSH tunnel that will bind to 4100 and forward the packet on to another server of mine. The issue is that the current command I'm running to initialize the tunnel is only listening on localhost, when I need it to listen on eth0, my external. Any takers?
<IdiotStic> korozion is the king of ssh tunnels here
<Allometry> I hope he's here!
<IdiotStic> paging korozion
<Allometry> lol
<IdiotStic> he'll wander by the crt in a bit and see his nick highlighted
<Allometry> :)
<korozion> hello?
<IdiotStic> heh
<Allometry> Hello?!
<howto> ^_^
<korozion> what command are you using?
<Allometry> let me grab it
<Allometry> ssh -f login@sub.remote.com -L 4100:sub.remote.com:25 -N
<korozion> use -Nf
<korozion> actually, from -N and -f for now
<korozion> those will just leave you on the remote server
<korozion> err local server I meean
<^Briago^> has anyone used a removable drive bay for IDE for hot-swapping? does it work with any ide controller (i.e. typical mobo controllers). My removable bays say on the box "Truely hot swappable"
<Allometry> Yeah, with that command I can't get to the forward from the external interface, only from localhost
<korozion> basically you're trying to forware port 25 on the remote server to 4100 on the local server?
<korozion> *forward
<Allometry> It's a wierd setup, and it's not mine, which is why I'm fighting with this. But, to explain the setup, we have mail being piped to a server that doesn't have mail and we HAVE to pipe it on to our actual mail server. So to diagram, SPAMWALL ->(4100)-> Server1.net -> (forward to) ->(25)-> Server2.com(mail server)
<IdiotStic> ^Briago^: I'd guess that the docs for the bay would say if it needed a specific controller, but I've never used hot swap ide
<Allometry> Does that make any sense at all? It does to me, but then again, I've been ****ing with this thing for two days...
<cmang> why not set the MX for the actual mail server?
<Allometry> In short, we cant.
<korozion> hmm, lemmie think
<Allometry> The reason for this is we have two servers that are located in two different data centers. The one data center has the server that does all our DNS and MAIL. The other data center contains our web server. My boss thought it was a good idea to use a mail solution housed in the same data center as our web server... Unfortunatly, their policy dictates only to forward mail on their spam wall to...
<Allometry> ...servers within thier data center, i.e. our web server.
<Allometry> Sound screwy?
<korozion> more screwy than some of my setups
<IdiotStic> koro: aren't you glad I paged? :)
<Allometry> My kung fu is not strong enough to handle such a screwy situation...
<Allometry> Thus the reason I'm here
<^Briago^> IdiotStic, there are no docs with the bay that discuss the controller... All I can figure is that when you turn the key, it cleanly electronically disconnects the power and ide, but i don't know if standard ide controllers can handle that...
<korozion> IdiotStic :)
<Allometry> Braigo, who's the manufacturer?
<IdiotStic> ^Briago^: yeah, I don't either. scsi will since the dirty work is done in the bay, but dunno about ide
<korozion> try it and find out (R)
<^Briago^> thanks
<^Briago^> idiotstic, I think I might test with my ancient 3G drive and a machine that I have with a bad mobo, but still boots...
<IdiotStic> that sounds like a good idea
<Allometry> korozion, what about a reverse tunnel initialized on my mailserver?
<korozion> what I would do ...
<korozion> hrm
<korozion> where are you setting the tunnel up from?
<Allometry> On the server without mail.
<Allometry> In the diagram, server1.net
<Allometry> It sets up the tunnel to server2.net, with mail
<korozion> so .... do it from the other server, or use a reverse tunnel
<korozion> ssh tunnels forward from remote machine to local
<korozion> I believe you have it backwards
<korozion> can you ssh to server2?
<Allometry> I sure as hell hope so...
<korozion> well, you must be able to, if you're setting up an ssh tunnel
<korozion> I've had my 5:00 beer, and it's now 7:00. So I'm not exactly thinking perfect ;D
<Allometry> I need a beer, it's 5:00 and I'm screwing with an SSH tunnel that isn't by my design
<korozion> basically, from server2, I would ssh user@server1.com -L 4100:localhost:25
<korozion> ***uming you want port 25 on server2 to end up on port 4100 on server1
<korozion> ****
<korozion> backwards that
<Allometry> To get 4100 on server1.net to forward to 25 on server2.net, I should run ssh user@server1.net -L 4100:localhost:25?
<korozion> let me rephrase
<korozion> if you want port 4100 on server1 to be 25 on server 2 ....
<Allometry> Yeah, because server 2 is our mail
<korozion> server1# ssh user@server2 -L 4100:localhost:25
<Allometry> it runs on standard 25
<korozion> basically, here at home, I send mail over an ssh tunnel to the server (because my ISP blocks port 25). So I home# ssh korozion@companymailserver -L 2525:localhost:25
<korozion> that makes my local port 2525 the same as the company mail server port 25
<cmang> the ssh client will bind to localhost for listening rather than 0.0.0.0. The same with the server when creating a tunnel which listens on the remot server.
<cmang> kind of a problem when you're wanting to create a publicly-available tunnel..
<Allometry> Yeah, that's the thing, the tunnel has to be public
<korozion> not really
<cmang> not really what? ;)
<korozion> hrm, public like how, everyone on that server?
<cmang> public as in listening on 0.0.0.0, or the public eth0 interface, rathern than localhost.
<Allometry> eth0
<korozion> O_o
<korozion> if you bind a port to another using ssh, it doesn't matter what interface it's on
<korozion> if you need to specify a certain interface, you can use -b
<cmang> If you tunnel a remote port to a local port, even if you specify the interface with -b (to use for the outgoing connection) the listening port for the tunnel will still be on 127.0.0.1. like this: tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 17145/ssh
<cmang> thus keeping clients routed from eth0 from accessing it. :/
<cmang> I mean, that's how I understand the issue, at least. :) I don't know the "Fix" for it..
<Allometry> I'm going to try binding it real quick, just to see if it works.
<Allometry> You know, I've always said spam ***asin works great, but some manager gets a hold of white papers for barracuda and wants it right the **** away.
<korozion> of course it listens on localhost, you're not setting up the tunnel and trying to conect to the remote server on that port are you?
<Allometry> Yes
<korozion> if you want to talk to the remote server over the tunnel, you use localhost:4100 and that automagically points to remote:25
<korozion> so on server1 you'd use localhost;4100 NOT server2:4100 or server2:25
<korozion> err make that : not ;
<korozion> making sense now?
<cmang> hmm, I could be wrong, but I still don't think you're understanding what he's trying to accomplish. :) Server2 (the real mail server) is listening on port 25 on the public interface, not localhost.
<cmang> he wants the public interface on server 1, port 25, to forward to the public interface on server2 port 25.
<Allometry> I just spoke with my people. We're ditching the idea because I recommended the idea was ****ing stupid
<korozion> cmang right, and localhost is being redirected to localhost on server1
<korozion> Allometry that works too
<korozion> spam******in ftw
<korozion> it's a local to local forward
<korozion> so ...
<Allometry> OK, I'm back.
<Allometry> Yeah, we've spent over 40 hours trying to get the damned thing to work. With that as my weapon, I told them this project should die
<Allometry> And spam***asin works just great
<Allometry> Maybe you guys agree that as sys admins, we should be allowed to make recommendations and those recommendations be followed.
<korozion> server1# ssh -Nf user@server2 -L 2222:localhost:22 then server1# ssh -p 2222 localhost
<korozion> ssh tunnels cause local to local
<korozion> it's confusing, but once you get it, it's simple
<Allometry> I'm going to write it down and try it tomorrow
<cmang> korozion: and after doing that, if you do netstat -nlp | grep 2222 on server1, you'll see that it's still listening on localhost, which was the original problem.
<korozion> you're not gettin git
<cmang> I guess not. :)
<Allometry> lol
<korozion> because localhost:2222 is forwarded to the remote server


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #linuxhelp
or
Go to some related logs:

wakeme up bevore you go go
#politics
#computers
aim sign on failed try again
#delphi
#directx
#beginner
#beginner
#politics
Queen Boddicea Celtic



Home  |  disclaimer  |  contact  |  submit quotes