[SLUG] (non) greediness in regexp ...
all, i have a ascii file which contains many lines like: first,last,occupation,someblah,[EMAIL PROTECTED] I want to replace the last email address with a bogus one. doing a reg exp replace (because of the greediness) like .*@.* will yield the entire string including the first! I want to match only the last quoted string eg .*@.* where the is the last before the @ I know how to do it in perl and awk, but I want to know how to do it using (non) greedy reg exp! thanks jobst -- Student to Teacher: Sir, what's an oxymoron? Teacher to Student: Microsoft security. __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director _ _.--'-n_/ Barrett Consulting Group P/L The Meditation Room P/L -(_)--(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] voice transmission using linux
There's a Gnome program that implements some VoIP protocol... I think it's actually a videophone, but without web cameras it will just do normal voice. The protocol it implements I think is a protocol that Cisco did most of the heavy standards work on. Let me check my notes Linphone: http://simon.morlat.free.fr/english/linphone.html Things it uses: Sound Card Layer: ALSA, OSS Initiation: SIP ( Session Initiation Protocol ) Transport: RTP Codecs: G711-alaw, G711-mulaw, GSM, TPC10-1.5 It also says it works with Windows etc VoIP phones, which could be interesting Let us know what you think of it if you find it successfull Adam - Original Message - From: Howard Lowndes [EMAIL PROTECTED] To: Andre Ribeiro Moutinho [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 4:10 PM Subject: Re: [SLUG] voice transmission using linux There is something called Speak Freely that does what you appear to want. It has interfaces for both Linux and Windows, though last time I looked the Linux interface was CLI only, no GUI. You can select the codec you want to use and can also encrypt the traffic stream on the fly. On Mon, 17 Sep 2001, Andre Ribeiro Moutinho wrote: I have two computers with sound cards and I wish to implement a simple phone application that collects voice in one computer and sends to another which receives and plays the voice using the sound card. I would like to know if there exists any kind of package or library that I can use to implement this easly using c++ language and gcc compiler. I just want to make them talk each other. I do not want to connect them to another machine running a different phone application with different voice over IP protocol. Best regards, Andre Moutinho -- Howard. LANNet Computing Associates - Your Linux people Contact detail at http://www.lannetlinux.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] RedHat kernel
On Tue, Sep 18, 2001 at 02:17:16PM +1100, Adam Vaughan wrote: All security and tcp/ip extensions to the standard must be disabled for our software to communicate. Once again thanks for any help that may be provided. RH7.1 comes with a 2.4 kernel, yes? echo 0 /proc/sys/net/ipv4/tcp_ecn echo 0 /proc/sys/net/ipv4/tcp_sack echo 0 /proc/sys/net/ipv4/tcp_fack echo 0 /proc/sys/net/ipv4/tcp_timestamps m. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] RedHat kernel
Mikolaj J. Habryn wrote: RH7.1 comes with a 2.4 kernel, yes? RH7.1 2.4.2-2 to be precise. RH7.0 2.2.16-22 Try kernel.org for the differences. -- Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861 email: [EMAIL PROTECTED] www: http://www.woa.com.au Wombat Outdoor Adventures Bicycles, Books, Computers, GIS People without trees are like fish without clean water -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Remote X login on RH 7.1 - followup
if [ ! $DISPLAY = :0 ] ; then stty erase ^H TERM=XTerm export TERM fi Your getting a little confused, the terminal type is xterm (lowercase) The program called xterm (which does xterm emultation ) looks at /usr/lib/X11/app-defaults/XTerm for its defaults -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Swapping mount points
On Tue, Sep 18, 2001 at 07:30:07PM +1100, Darrell Burkey wrote: I have a system that I partitioned poorly and now find that I have /home on a rather large partition and /var on a rather small partition. If I could easily swap these two mount points life would be good. I've been reading up on it but I'd hate to do this without asking here first as the following just seems to easy. Is it just a matter of unmounting the filesystems and changing the mount points in fstab? Will this end up with all the files in the proper place but on swapped partitions? Unfortunately not. What you've got is: /home mountpoint using partition X /var mountpoint using partition Y Now, in partition X, you'll have directories like dazza, www, fred, etc -- that is, every single file and directory in /home is in that partition. The partition has no inherent knowledge of the fact it is being used as a /home. And over in partition Y, you'll have directories like log, run, spool, and so on -- all the stuff you see under your /var directory. If you change the /home mountpoint to use partition Y (e.g. by editing /etc/fstab), what you'll now see if you look in /home will be: /home/log, /home/run, /home/spool... which is not what you want, of course. I think you'll need to do some shuffling with a temporary partition of some sort, but I'm not really sure of the best way to do that -- hopefully someone else can offer some good suggestions on how to do that. Basically, you need to copy everything from the small partition to the big one, and vice versa. I hope I've made it clear how it works. Feel free to post again if I've confused you. Regards, -Andrew. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Swapping mount points
I think you'll need to do some shuffling with a temporary partition of some sort, but I'm not really sure of the best way to do that -- hopefully someone else can offer some good suggestions on how to do that. Basically, you need to copy everything from the small partition to the big one, and vice versa. I hope I've made it clear how it works. Feel free to post again if I've confused you. Yes, this makes perfect sense. I think I may have actually done this once before but for some reason I just had a mental block about it. Reading your explanation was most helpful. I'll arm myself with some chocolate and coffee beforehand and give it a go. Cheers. ~~ Darrell Burkey @ Home Canberra, ACT -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] (non) greediness in regexp ...
On Tue, Sep 18, 2001 at 04:30:30PM +1000, Jobst Schmalenbach wrote: all, i have a ascii file which contains many lines like: first,last,occupation,someblah,[EMAIL PROTECTED] I want to match only the last quoted string eg .*@.* where the is the last before the @ [^]+$ In the above regex, [^]+ matches the email address itself, the rest is required for anchoring. -- Tom -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Linux format converters
Edwin Humphries wrote: StarOffice output is OK, but I don't want to do this manually or from a GUI - it needs to be able to called up from a command-line script. You can script OpenOffice (staroffice). I have not got that involved yet, done it for word so it should not be hard for OpenOffice. KenF -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] iptables forwarding
Hi all, Just about to take the plunge and convert all my various ipchains scripts to iptables. I like the way packets only traverse one rule, either the forward or the input rule. My question, on a firewall with PPP, a packet incoming on the PPP interface yet bound for the ethernet interface, is that counted as forward or input? My guess is it is input. it would only go through the forward rule if bound for another host on the ethernet network. tia Ian -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] chown problem
Not a big one but google didn't render up it's usual clarity. I have a site where they use fred.dagg as usernames which stuffs chown as it thinks fred(user) dagg(group). Any brilliant ideas? Obviously I can use the user number (terminology?) each time but I thought there might be another way.. TIA Stuart -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] iptables forwarding
On Tue, 18 Sep 2001, Ian Ward wrote: My question, on a firewall with PPP, a packet incoming on the PPP interface yet bound for the ethernet interface, is that counted as forward or input? My guess is it is input. it would only go through the forward rule if bound for another host on the ethernet network. This is correct, a packet destined for the router itself on any interface is only seen in the input chain. - James -- James Morris [EMAIL PROTECTED] -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] SMS trought modem
On Mon, 17 Sep 2001, Matthieu Chauzit wrote: that would send a SMS throught a classic modem (without internet connection). Does anybody have some simple source code Hey! Why bother learning to use a search engine when all these SLUG guys will do it for free? In this case, STFA (Search the friendly archives) - its been on SLUG before. http://www.progsoc.uts.edu.au/lists/slug/1999/December/msg00571.html Do you know which protocol your desired service uses? -- Mike Holland [EMAIL PROTECTED] --==-- Everybody is talking about the weather but nobody does anything about it. -- Mark Twain -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] chown problem
On Tue, Sep 18, 2001 at 09:55:40PM +1000, eurk-dsl uttered: I have a site where they use fred.dagg as usernames which stuffs chown as it thinks fred(user) dagg(group). Ugh! Any brilliant ideas? Obviously I can use the user number (terminology?) each time but I thought there might be another way.. The user number is called 'UID', and yes, you can use that with chown. steven@broken:~$ touch lala; sudo chown 0 lala steven@broken:~$ ls -l lala -rw-r--r--1 root users 0 Sep 19 00:08 lala (You can see your uid with the 'id' command) TIA Stuart -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- Steve Portable, adj.: Survives system reboot. PGP signature
Re: [SLUG] Swapping mount points
begin Darrell Burkey quotation: I have a system that I partitioned poorly and now find that I have /home on a rather large partition and /var on a rather small partition. If I could easily swap these two mount points life would be good. I second Andrew's remarks. Go to /var and do du -Hs to find out how many bytes are stored, there. Then, do df -h to find out how much free space there is on /home (and elsewhere). If there's enough free space on /home to add a copy of /var's files alongside its existing contents, then you can probably shuffle files around without having to repartition. (Don't forget to also verify that the total size of your current /var is big enough to comfortably hold the existing contents of /home.) Assuming there's sufficient wiggle room, do this: Go to single-user mode. Do cd / ; cp -axr /var /home. Spot-check the new directory inside /home, to make sure everything seems to be there. Do rm -rf /var. Do mkdir var. Do cd / ; cp -axr /home/* /home/.??* /var Spot-check the new home directories and whatever stuff within /var. Do cd / ; umount /home /var. Edit /etc/fstab, to exchange mounting points for the two directories. Do mount -a to remount according to the revised /etc/fstab. Warning: It's morning here, and I am absolutely not a morning person. There may well be bonehead errors in the above on account of insufficient caffeine. But it will at least illustrate the concept. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Swapping mount points
On Tue, Sep 18, 2001 at 08:55:11AM -0700, Rick Moen uttered: Do cd / ; cp -axr /var /home. Found, one bonehead error. -r copy recursively, non-directories as files WARNING: use -R instead when you might copy special files like FIFOs or /dev/zero Last I checked, /var contained FIFOs. -a implies -R, so using cp -ax should be fine. Warning: It's morning here, and I am absolutely not a morning person. There may well be bonehead errors in the above on account of insufficient caffeine. But it will at least illustrate the concept. It's morning here, too. ;-) -- Steve BOFH excuse #274: It was OK before you touched it. PGP signature
Re: [SLUG] SMS trought modem
I am currently trying to see how I can implement a C program that would send a SMS throught a classic modem (without internet connection). Does anybody have some simple source code or information that would help me to implement my program ? Hey! Why bother learning to use a search engine when all these SLUG guys will do it for free? In this case, STFA (Search the friendly archives) - its been on SLUG before. I already spent a week on the net before soliciting SLUG help. Indeed I could not find a C program. Although there is sms-client (as suggested by Howard Lowndes), but it is way too much complex. So I was wondering if one of the SLUG guys had a simple source code somewhere.. http://www.progsoc.uts.edu.au/lists/slug/1999/December/msg00571.html It is about perl scripts. Do you know which protocol your desired service uses? GSM protocol. The part which deals with that kind of application is described in: European digital cellular telecommunications system (Phase 2); Interface protocols for the connection of Short Message Service Centres (SMSCs) to Short Message Entities (SMEs) (GSM 03.39) (author: European Telecommunications Standards Institute) I am still looking for a simple C implementation of it. Matthieu Chauzit. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] [OT] Someone trying to hack me
Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? Thanks heaps. James -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, 19 Sep 2001 06:41:18 +1000 [EMAIL PROTECTED] wrote: Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? Not if you're using windows. I am using Windows 98 SE on this particular connection. Anybody who connects a windows box directly to the net is asking for trouble, even if its just on a dial up modem. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? Why are you asking this on the Sydney **LINUX** User Group mailing list? What makes you think anyone here knows anythig about windows? Erik -- - Erik de Castro Lopo [EMAIL PROTECTED] (Yes its valid) - Don't hate the media. Become the media. - Jello Biafra -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
Why are you asking this on the Sydney **LINUX** User Group mailing list? What makes you think anyone here knows anythig about windows? ? Well, think about it. Do you really think Windows user groups are going to know? Just because one uses Linux, it doesn't mean they don't know anything about Windows. I use both. So there. }:-P -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
begin [EMAIL PROTECTED] quotation: Well, think about it. Do you really think Windows user groups are going to know? Just because one uses Linux, it doesn't mean they don't know anything about Windows. I use both. So, your point is that that's why you answer MS-Windows questions on MS-Windows mailing lists? -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
[EMAIL PROTECTED] wrote: I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. GTFOML! _ Rick Welykochy || Praxis Services Pty Limited If every copy sold of Windows 95 crashes an average of once per day, and Bill Gates Gates were charged $1 per crash, his fortune would last less than a year. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
If you are worried about something like BackOrifice then the command netstat -a from a dos box will show you all the connections and open ports on your machine. I also ran into an interesting page last night that talks about some of the myths of Windows networking (and has interesting comments about Steve Gibson's dramatic approaches with Shields Up - see http://www.grc.com) at: http://cable-dsl.home.att.net/netbios.htm And you can't beat the free firewall program ZoneAlarm for Windoze boxen http://www.zonealarm.com/ Cheers. I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? ~~ Darrell Burkey @ Home Canberra, ACT -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
Its probably the Nimda attack. It started about 23:00 last night. On Wed, 19 Sep 2001 [EMAIL PROTECTED] wrote: Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? Thanks heaps. James -- Howard. LANNet Computing Associates - Your Linux people Contact detail at http://www.lannetlinux.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
the solution is to install linux and setup a firewall-gateway. Forget trying to secure your win98 box. At 06:41 AM 19/09/2001 +1000, [EMAIL PROTECTED] wrote: Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? Thanks heaps. James -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, Sep 19, 2001 at 06:41:18AM +1000, [EMAIL PROTECTED] wrote: Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? Not on Windows. Probably the machine is compromised. I am using Windows 98 SE on this particular connection. My condolences. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? Hmm, strangely I don't know. Perhaps a _Windows_ mailing list might know? What is the best firewall that I can install for Windoze 98? format c: Thanks heaps. It was no problem, really. James Stephen -- Stephen Norris[EMAIL PROTECTED] Farrow Norris Pty Ltd +61 417 243 239 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me (better solution)
If you want to kill this new worm on the head (instead of many http requests stop it after the 1st it's very simple and a bit insecure) either use a firewalling tool or plain old route! firstly chmod +s your tool (this is insecure I know but then the webserver user can do the dirty work of blocking hosts in real time!) then say for iptables get a script called /scripts/root.exe to execute (in whatever your language is) /sbin/iptables -I INPUT -s (SOURCE IP) -j DROP OR /sbin/route add -host (SOURCE IP) dev lo and no more requests from that machine at all. On Wed, 19 Sep 2001, Graeme Robinson wrote: the solution is to install linux and setup a firewall-gateway. Forget trying to secure your win98 box. At 06:41 AM 19/09/2001 +1000, [EMAIL PROTECTED] wrote: Hi sluggers, I am convinced someone is trying to hack me, or crack rather. I am sitting on a dialup connection, and there's strange traffic happening. Even when I'm not FTP'ing or anything, I see I have sent out like half a megabyte or something. Is this unusual??? I am using Windows 98 SE on this particular connection. Is there a packet sniffer for Windows that I can sit on the connection to inspect all incoming and outgoing traffic, and get the IP address of the other side, etc? What is the best firewall that I can install for Windoze 98? Thanks heaps. James -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
- Original Message - From: Erik de Castro Lopo [EMAIL PROTECTED] Date: Wednesday, September 19, 2001 7:59 am Subject: Re: [SLUG] [OT] Someone trying to hack me Anybody who connects a windows box directly to the net is asking for trouble, even if its just on a dial up modem. What a stupid fscking remark. I'm not even going to dignify your stupidity with further comment. DJ! -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
DJ! [EMAIL PROTECTED] wrote: - Original Message - From: Erik de Castro Lopo [EMAIL PROTECTED] Date: Wednesday, September 19, 2001 7:59 am Subject: Re: [SLUG] [OT] Someone trying to hack me Anybody who connects a windows box directly to the net is asking for trouble, even if its just on a dial up modem. What a stupid fscking remark. I'm not even going to dignify your stupidity with further comment. To be a bit more diplomatic, a WinXX box on the network is fine as long as it is fully patched. I won't make any snide remarks about how many patches that is, but making broad sweeping statements like people shouldn't run WinXX on live IPs is just wrong. Anyway, either thread==dead or thread-chat... marty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
DJ! wrote: - Original Message - From: Erik de Castro Lopo [EMAIL PROTECTED] Date: Wednesday, September 19, 2001 7:59 am Subject: Re: [SLUG] [OT] Someone trying to hack me Anybody who connects a windows box directly to the net is asking for trouble, even if its just on a dial up modem. What a stupid fscking remark. I'm not even going to dignify your stupidity with further comment. DJ! I don't think the remark was that stupid, though it probably should have been expanded to any box rather than just a windows box. I used to use Win-NT directly connected to the net and sure enough it got hit. Similarly I used Linux connected directly to the net and again it got hit. Now I use a combination and an ipchains firewall. I haven't been hit since. Like the cat says... Its only a matter of time... Andrew E. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] chown problem
On Tue, Sep 18, 2001 at 09:55:40PM +1000, eurk-dsl wrote: I have a site where they use fred.dagg as usernames which stuffs chown as it thinks fred(user) dagg(group). This is a problem with GNU chown; it accepts both `:' and `.' as a separator between user and group. The solution is to always include a group name, e.g. chown fred.dagg:fred.dagg file. Cheers, John -- whois [EMAIL PROTECTED] GPG key id: 0xD59C360F -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] WAS: Someone trying to hack me (better solution)
At 10:15 AM 19/09/2001 +1000, Jeffrey Borg wrote: If you want to kill this new worm on the head (instead of many http requests stop it after the 1st it's very simple and a bit insecure) either use a firewalling tool or plain old route! firstly chmod +s your tool (this is insecure I know but then the webserver user can do the dirty work of blocking hosts in real time!) then say for iptables get a script called /scripts/root.exe to execute (in whatever your language is) /sbin/iptables -I INPUT -s (SOURCE IP) -j DROP OR /sbin/route add -host (SOURCE IP) dev lo and no more requests from that machine at all. Interesting idea! Dropping packets from a source address will mean nothing gets logged from that source IP and Apache won't see the request, but it won't necessarily stop the traffic, just filter it at your server/gateway. This is helpful if you were getting a denial of service attack that was crippling your ability to serve html to legitimate requests but isn't going to solve the problem if the attack is chewing into your bandwidth and affecting latency/data charges. Might be a cool idea to add to the script a log of the IP's being dropped that you could then email your ISP to filter out further upstream at their routers. I see an eventual solution to distributed denial of service attacks like code red lying in the automated notification and blocking of source IP's at the source rather than destination ISP. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Re: WAS: Someone trying to hack me (better solution)
On Wed, 19 Sep 2001, Graeme Robinson wrote: At 10:15 AM 19/09/2001 +1000, Jeffrey Borg wrote: If you want to kill this new worm on the head (instead of many http requests stop it after the 1st it's very simple and a bit insecure) either use a firewalling tool or plain old route! firstly chmod +s your tool (this is insecure I know but then the webserver user can do the dirty work of blocking hosts in real time!) then say for iptables get a script called /scripts/root.exe to execute (in whatever your language is) /sbin/iptables -I INPUT -s (SOURCE IP) -j DROP OR /sbin/route add -host (SOURCE IP) dev lo and no more requests from that machine at all. Interesting idea! Dropping packets from a source address will mean nothing gets logged from that source IP and Apache won't see the request, but it won't necessarily stop the traffic, just filter it at your server/gateway. This is helpful if you were getting a denial of service attack that was crippling your ability to serve html to legitimate requests but isn't going to solve the problem if the attack is chewing into your bandwidth and affecting latency/data charges. you get 1 request and quite a few incoming packets to try and establish a tcp connection. but it's not that much traffic compared to allowing the requests to happen. Anyway it's working fine for me (btw I only have one machine here anyway, but I don't want to block off the web server.) well in this solution no outgoing bandwidth is used because you don't send anything back and there is really minimal incoming traffic. I had 12 mb incoming today and 11mb yesterday because of this. I expect it to drop back to about a meg or two after this. Might be a cool idea to add to the script a log of the IP's being dropped that you could then email your ISP to filter out further upstream at their routers. Bit late at that stage you need to stop the requests in real time. by the time that happends they have finished scanning. Different if you could change the rules in real time on the other end. I see an eventual solution to distributed denial of service attacks like code red lying in the automated notification and blocking of source IP's at the source rather than destination ISP. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] gcc problem
Hi All, I am trying to compile some GNUstep software - MusicKit and SndKit for my debian ppc box; I'm helping out on the project where I can (mainly documentation so far). After some successful compilations of various components a gcc compiler error appears: parseScore.m:1465: Internal compiler error in `schedule_region', at haifa-sched.c: Google points me to some messages saying this has been fixed in 2.95.2, but this is Potato stable and gcc -v gives me that. Try another version of gcc he thinks. Downloads source for 2.95.3 (warned against 3.0 by one of the developers), compiles in home directory, configured ultimately for /usr/local/. Now for a very stupid question. How do I avoid interfering with my dpkg'd /usr/bin/gcc? Rename it temporarily before a make install on the new version? Is there an archive from which I could get a suitable .deb package for an earlier release of gcc even? Although some might suggest I go back to doing what I actually know about, one of the developers in particular is keen to know whether the software compiles on something other than intel machines. Thanks, Denis Crowdy -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] gcc problem
on Wed, Sep 19, 2001 at 11:05:42AM -0500, Denis Crowdy [EMAIL PROTECTED] wrote: Now for a very stupid question. How do I avoid interfering with my dpkg'd /usr/bin/gcc? Rename it temporarily before a make install on the new version? Is there an archive from which I could get a suitable .deb package for an earlier release of gcc even? The gcc-2.95.3 you compiled should install straight into /usr/local and not touch your already (.deb) gcc. You can then choose which gcc you use by setting you PATH variable. brounb@edward/usr/bin/gcc --version 2.96 brounb@edward/usr/local/bin/gcc --version 3.0 brounb@edward/usr/local/Old/bin/gcc --version 2.95.3 this one was compiled with ./configure --prefix=/usr/local/Old each gcc keeps a specs file brounb@edward/usr/local/Old/bin/gcc -v Reading specs from /usr/local/Old/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs BB -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] (non) greediness in regexp ...
On Tue, Sep 18, 2001 at 04:43:06PM +1000, Mikolaj J. Habryn ([EMAIL PROTECTED]) wrote: On Tue, Sep 18, 2001 at 04:30:30PM +1000, Jobst Schmalenbach wrote: .*@.* I want to match only the last quoted string eg .*@.* where the is the last before the @ [^]*@[^]* You win :-)) Could you explain? I did some reading (I have Jeffrey Friedl's RegExp book) but dont understand how your regexp works. thanks jobst -- If you want something done, forbid your children from doing it. __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director _ _.--'-n_/ Barrett Consulting Group P/L The Meditation Room P/L -(_)--(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] (non) greediness in regexp ...
* This one time, at band camp, Jobst Schmalenbach said: On Tue, Sep 18, 2001 at 04:43:06PM +1000, Mikolaj J. Habryn ([EMAIL PROTECTED]) wrote: On Tue, Sep 18, 2001 at 04:30:30PM +1000, Jobst Schmalenbach wrote: .*@.* I want to match only the last quoted string eg .*@.* where the is the last before the @ [^]*@[^]* You win :-)) Could you explain? I did some reading (I have Jeffrey Friedl's RegExp book) but dont understand how your regexp works. It works - but its not precise. It is saying Match : Match anynumber of chars that are not : [^]* Match @ : @ Match anynumber of chars that are not : [^]* Match : By any number - I also mean 0 - hence one of the problems... ,[\w\d._]+@[\w\d.\-]+$ is a more precise (though by no means complete) solution for your current issue (tested with perl but the theory is sound) Match a comma then double quote : , Match any number (but at least 1) letter, word, . or _ : [\w\d._]+ Match @ : @ Match any number (but at least 1) letter, word, . or - : [\w\d.\-]+ Match followed by end of line : $ As you can see - you can adapt this one to allow more things (or disallow them). Matching valid email addresses is not an easy task for a single regex. HTH Greeno -- Greeno [EMAIL PROTECTED] GnuPG Key : 1024D/B5657C8B Key fingerprint = 9ED8 59CC C161 B857 462E 51E6 7DFB 465B B565 7C8B Imagine working in a secure environment and finding the string _NSAKEY in the OS binaries without a good explanation -Alan Cox 04/05/2001 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] How to get the user name of the invoker of a sh script and use mail within the script.
Hi all, I am writing a quick bash backup script and it can be run by any user. At the end of the script I want it to email the user with a reminder to copy the tar files it created to another machine. So what I want is a unix command to tell me the current user of that script ie who invoked it. An apropos uid showed there were functions like getuid but they arent suitable for calling up in a sh script. Basically it's like this #!/bin/sh # Synopsis, author,date into ect stuff.. list_of_users=archive mikel lindax for i in $list_of_users; do filename=$i.$now echo Backing up /usr/people/$i/Structures/... echo tar cvf $filename.tar /usr/people/$i/Structures/* 2 $filename.log echo gzip $filename.tar echo Backup file saved as $filename.tar.gz echo done then *something* like this... exec mail -s Reminder to move backups. $user etc and include a few lines of text in the mail message. ie the filenames to move. Mike -- --- Michael Lake University of Technology, Sydney Ph: 9514 1724 Fx: 9514 1628 email: [EMAIL PROTECTED] --- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, 19 Sep 2001, Graeme Robinson wrote: the solution is to install linux and setup a firewall-gateway. Forget trying to secure your win98 box. Thats not quite true. There are firewall programs - not as good as a linux firewall box, but OK for personal use. Especially when you dont need any services open. But I think the best answer was GTFOML. Amen! -- Mike Holland [EMAIL PROTECTED] --==-- Everybody is talking about the weather but nobody does anything about it. -- Mark Twain -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] (non) greediness in regexp ...
Sorry - try again with proper formatting ;-) It works - but its not precise. It is saying Match : Match anynumber of chars that are not : [^]* Match @: @ Match anynumber of chars that are not : [^]* Match : By any number - I also mean 0 - hence one of the problems... ,[\w\d._]+@[\w\d.\-]+$ is a more precise (though by no means complete) solution for your current issue (tested with perl but the theory is sound) Match a comma then double quote: , Match any number (but at least 1) letter, word, . or _ : [\w\d._]+ Match @: @ Match any number (but at least 1) letter, word, . or - : [\w\d.\-]+ Match followed by end of line: $ As you can see - you can adapt this one to allow more things (or disallow them). Matching valid email addresses is not an easy task for a single regex. HTH Greeno -- Greeno [EMAIL PROTECTED] GnuPG Key : 1024D/B5657C8B Key fingerprint = 9ED8 59CC C161 B857 462E 51E6 7DFB 465B B565 7C8B Imagine working in a secure environment and finding the string _NSAKEY in the OS binaries without a good explanation -Alan Cox 04/05/2001 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
But I think the best answer was GTFOML. Amen! Up yours too, then. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] How to get the user name of the invoker of a sh script and use mail within the script.
Michael Lake wrote: So what I want is a unix command to tell me the current user of that script ie who invoked it. An apropos uid showed there were functions like getuid but they arent suitable for calling up in a sh script. Does 'whoami' do the job? -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] How to get the user name of the invoker of a sh script and use mail within the script.
On Wed, Sep 19, 2001 at 12:56:54PM +1100, Michael Lake wrote: So what I want is a unix command to tell me the current user of that script ie who invoked it. [johnc@dropbear ~]$ who am i dropbear.vastsystems.com.au!johncpts/2Aug 27 11:21 [johnc@dropbear ~]$ whoami johnc [johnc@dropbear ~]$ id -un johnc Cheers, John -- whois [EMAIL PROTECTED] GPG key id: 0xD59C360F -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] SMS trought modem
Matthieu Chauzit was once rumoured to have said: I am currently trying to see how I can implement a C program that would send a SMS throught a classic modem (without internet connection). Does anybody have some simple source code or information that would help me to implement my program ? Hey! Why bother learning to use a search engine when all these SLUG guys will do it for free? In this case, STFA (Search the friendly archives) - its been on SLUG before. I already spent a week on the net before soliciting SLUG help. Indeed I could not find a C program. Although there is sms-client (as suggested by Howard Lowndes), but it is way too much complex. So I was wondering if one of the SLUG guys had a simple source code somewhere.. http://www.progsoc.uts.edu.au/lists/slug/1999/December/msg00571.html It is about perl scripts. SMS transmission is not simple unless you're using something like TAP or the ASCII dialup interface that the script that was provided. Do you know which protocol your desired service uses? GSM protocol. The part which deals with that kind of application is described in: European digital cellular telecommunications system (Phase 2); Interface protocols for the connection of Short Message Service Centres (SMSCs) to Short Message Entities (SMEs) (GSM 03.39) (author: European Telecommunications Standards Institute) I'm currently working on a C implementation to handle ETS 300 916 (GSM 07.07 v5.9.1 - AT command set for GSM Mobile Equipment) and TS 100 585 (GSM 07.05 v7.0.1 - Equipment Interface for SMS and CBS) in my spare time, so I can get linux to interact with my Ericsson phone. If/when I've eventually finished this, you may find it of some use since I will have some code to handle SMS TPDUs (I already have some code to handle GSM string encoding). From what I've seen of GSM 03.39, it is outside the operational domain for most users, consquentially there is unlikely to be a free implementation of it yet. [However, if there is free implementations of this stuff, can somebody *please* point me at them :)] One of the most common methods for generating SMS traffic from land-line is by communicating with a TAP gateway - I have personally used Vodafone and Telstra's services, and I'm fairly sure that Optus also provides a similar service. For this purpose, sms-client is ideal. C. -- --==-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==-- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] (non) greediness in regexp ...
* This one time, at band camp, John Clarke said: On Wed, Sep 19, 2001 at 11:52:16AM +1000, Tony Green wrote: disallow them). Matching valid email addresses is not an easy task for a single regex. Have a look at the ones from O'Reilly's regex book: http://examples.oreilly.com/regex/readme.html I've read that one - and they agree. To match a FULL range of email addresses is very complex and not easy to do with a single regex. Your best bet is to ensure you know what sort of mail you'll be getting (No uucp etc etc ; ) and code for that. -- Greeno [EMAIL PROTECTED] GnuPG Key : 1024D/B5657C8B Key fingerprint = 9ED8 59CC C161 B857 462E 51E6 7DFB 465B B565 7C8B Imagine working in a secure environment and finding the string _NSAKEY in the OS binaries without a good explanation -Alan Cox 04/05/2001 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] SMS trought modem
On Tue, 18 Sep 2001, Matthieu Chauzit wrote: I already spent a week on the net before soliciting SLUG help. Indeed I could not find a C program. Although there is sms-client (as suggested by Howard Lowndes), but it is way too much complex. So I was wondering if one of the SLUG guys had a simple source code somewhere.. You cant get much simpler than http://www.progsoc.uts.edu.au/lists/slug/1999/December/msg00571.html It is about perl scripts. Oh I see - you want someone to do the actual coding for you? Actually its a shell-script wrapper for a chat script. Perhaps you thought it was complex, and didnt want to reinvent the wheel. Looking for existing code is often a good idea. But in this case you can plainly see that it is trivial. To quote from Craig Southeren: /usr/sbin/chat -v $DEV $DEV REPORT CONNECT ABORT BUSY ABORT 'NO DIALTONE' ABORT 'NO CARRIER' '' ATZ OK \\dATDT${SMS_NUMBER} CONNECT '' 'QUIT)' $TARGET\\n KEY $MSG BEING SENT ATH $DEV $DEV ie dialup, then send two lines of text: the number, and message. Its mind-bogglingly trivial. protocols for the connection of Short Message Service Centres (SMSCs) to Short Message Entities (SMEs) (GSM 03.39) Are you sure? It sounded like you wanted to use a POTS dialup SMS gateway. I am still looking for a simple C implementation of it. Perhaps you want to see the code for the chat program? Why 'C'? main() { exec( /usr/sbin/chat, REPORT, ATZ, OZ, ... -- Mike Holland [EMAIL PROTECTED] --==-- Everybody is talking about the weather but nobody does anything about it. -- Mark Twain -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] virii wasting bandwidth
On Wed, 19 Sep 2001, Graeme Robinson wrote: (snip re previous thread) Might be a cool idea to add to the script a log of the IP's being dropped that you could then email your ISP to filter out further upstream at their routers. I see an eventual solution to distributed denial of service attacks like code red lying in the automated notification and blocking of source IP's at the source rather than destination ISP. which leads to the question... how can one stop all the crap (snow white et.al.) that is chewing up my expensive band width. Sure it doesn't pose a security problem as long as the system is properly configured, but I am paying per meg download. I can't see how I can get my upstream to filter it (optus in my case), since it arrives randomly from infected hosts. Once it hits my gateway, I've already paid for it. Is this just an expense of running the internet? a tax we all pay for having half wits on the net? or is there something can be done? David -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] How to get the user name of the invoker of a sh script and use mail within the script.
Hi all, As allways there is more than one way to do it. Tony Green wrote: $LOGNAME and $USER should contain the users name Don't bother with the exec - not needed and you can yep that worked OK cat files | mail $USER Matthew Dalton (and John Clarke) suggested: Does 'whoami' do the job? yep works too: cat files | mail `whoami` Thanks heaps :-) Mike -- --- Michael Lake University of Technology, Sydney Ph: 9514 1724 Fx: 9514 1628 email: [EMAIL PROTECTED] --- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] SMS trought modem
On Wed, 19 Sep 2001, Crossfire wrote: Matthieu Chauzit was once rumoured to have said: I am currently trying to see how I can implement a C program that would send a SMS throught a classic modem (without internet connection). Does anybody have some simple source code or information that would help me to SMS transmission is not simple unless you're using something like TAP or the ASCII dialup interface that the script that was provided. That seems to be what Matthieu wanted. I'm currently working on a C implementation to handle ETS 300 916 (GSM 07.07 v5.9.1 - AT command set for GSM Mobile Equipment) and TS 100 One example of a program to send an SMS by AT commands is at: http://juraj.bednar.sk/work/software/smstools/myputsms/ Matthieu, come to think of it, you may find that code useful, as it does all the same kind of things you need - open a serial port, send commands, wait for response (ie like 'chat'). 585 (GSM 07.05 v7.0.1 - Equipment Interface for SMS and CBS) in my spare time, so I can get linux to interact with my Ericsson phone. There is a lot of software on palm-pilots for that kind of thing, which you might find helpful. From what I've seen of GSM 03.39, it is outside the operational domain What kind of protocol 'GSM 03.39' ? (not AT commands?) for most users, consquentially there is unlikely to be a free implementation of it yet. [However, if there is free implementations of this stuff, can somebody *please* point me at them :)] Have you seen 'gsmlib'? http://www.pxh.de/fs/gsmlib/ GSMLIB is a library to access GSM mobile phones through GSM modems. cheers, -- Mike Holland [EMAIL PROTECTED] --==-- Everybody is talking about the weather but nobody does anything about it. -- Mark Twain -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] SMS trought modem
Mike Holland was once rumoured to have said: On Wed, 19 Sep 2001, Crossfire wrote: Matthieu Chauzit was once rumoured to have said: I am currently trying to see how I can implement a C program that would send a SMS throught a classic modem (without internet connection). Does anybody have some simple source code or information that would help me to SMS transmission is not simple unless you're using something like TAP or the ASCII dialup interface that the script that was provided. That seems to be what Matthieu wanted. He doesn't seem to know what he wants. I'm currently working on a C implementation to handle ETS 300 916 (GSM 07.07 v5.9.1 - AT command set for GSM Mobile Equipment) and TS 100 One example of a program to send an SMS by AT commands is at: http://juraj.bednar.sk/work/software/smstools/myputsms/ I'm not needing examples, and most examles I have seen cover the text-mode protocol which the Ericsson doesn't support (It only supports PDU mode). 585 (GSM 07.05 v7.0.1 - Equipment Interface for SMS and CBS) in my spare time, so I can get linux to interact with my Ericsson phone. There is a lot of software on palm-pilots for that kind of thing, which you might find helpful. I haven't found much thats free though. And that which I found for the TI28 modems, failed to operate with my R320 properly. From what I've seen of GSM 03.39, it is outside the operational domain What kind of protocol 'GSM 03.39' ? (not AT commands?) Its the raw protocol that runs over AX.25/other-medium between SMS Message Centers and other devices. It theoretically can be accessed via a dialup modem I'm guessing, but I'd it is a immensely complicated library. for most users, consquentially there is unlikely to be a free implementation of it yet. [However, if there is free implementations of this stuff, can somebody *please* point me at them :)] Have you seen 'gsmlib'? http://www.pxh.de/fs/gsmlib/ GSMLIB is a library to access GSM mobile phones through GSM modems. Which actually does what I've been writing code to do! Beh. If only I had found this yesterday. :) (I also admit I didn't look very hard since writing the library didn't seem like a horidly difficult task). C. -- --==-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==-- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Satellite connection
I have been asked to change one of my Linux PSTN gateway connections to a BPB satellite connection. Having never done one before I have one or two questions. I understand that it will be sat. in and land out. 1. Do BPB supply a Linux capable card, or do I need to supply one? If so, suggestions welcomed. 2. What Linux drivers shall I be using? 3. Any HOWTOs? -- Howard. LANNet Computing Associates - Your Linux people Contact detail at http://www.lannetlinux.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] virii wasting bandwidth
On Wed, 19 Sep 2001, David wrote: Might be a cool idea to add to the script a log of the IP's being dropped that you could then email your ISP to filter out further upstream at their routers. I see an eventual solution to distributed denial of service attacks like code red lying in the automated notification and blocking of source IP's at the source rather than destination ISP. This is an area of research in Active Networks - bits of code running on routers and switches. When an attack comes in, it gets traced through the system and the code attaches itself to the outgoing router, shutting off the offensive traffic. No, it's not in production yet, and yes, I'm aware of the myriad of potential problems. But it's one of the things on the horizon. which leads to the question... how can one stop all the crap (snow white et.al.) that is chewing up my expensive band width. Sure it doesn't pose a security problem as long as the system is properly configured, but I am paying per meg download. I can't see how I can get my upstream to filter it (optus in my case), since it arrives randomly from infected hosts. Once it hits my gateway, I've already paid for it. Is this just an expense of running the internet? a tax we all pay for having half wits on the net? or is there something can be done? You could ask your ISP to filter all stuff for you that you don't explicitly request, but that screws up legitimate requests. When it comes down to it, it is pretty much a tax caused by idiots. It's also why spam is so universally reviled - because the sender doesn't pay for it, the receiver does. -- --- #include disclaimer.h Matthew Palmer [EMAIL PROTECTED] -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Re: WAS: Someone trying to hack me (better solution)
On Wed, 19 Sep 2001, Jeffrey Borg wrote: you get 1 request and quite a few incoming packets to try and establish a tcp connection. but it's not that much traffic compared to allowing the requests to happen. Anyway it's working fine for me (btw I only have one machine here anyway, but I don't want to block off the web server.) Ah, bullocks. I'm getting hit all day with the Dumbo worm hitting my Apache web server. The server justs sits there purring. Zero impact, while do 101 other things on the same box. _ Rick Welykochy || Praxis Services Pty Limited If every copy sold of Windows 95 crashes an average of once per day, and Bill Gates Gates were charged $1 per crash, his fortune would last less than a year. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, 19 Sep 2001 [EMAIL PROTECTED] wrote: But I think the best answer was GTFOML. Amen! Up yours too, then. yawn _ Rick Welykochy || Praxis Services Pty Limited If every copy sold of Windows 95 crashes an average of once per day, and Bill Gates Gates were charged $1 per crash, his fortune would last less than a year. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Satellite connection
On Wed, 19 Sep 2001, Howard Lowndes wrote: I have been asked to change one of my Linux PSTN gateway connections to a BPB satellite connection. Having never done one before I have one or two This might help: http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg00247.html It seems to be possible, but not popular. -- Mike Holland [EMAIL PROTECTED] --==-- Everybody is talking about the weather but nobody does anything about it. -- Mark Twain -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] virii wasting bandwidth
On Wed, Sep 19, 2001 at 01:52:17PM +1000, Matthew Palmer ([EMAIL PROTECTED]) wrote: On Wed, 19 Sep 2001, David wrote: [snip] it is pretty much a tax caused by idiots. It's also why spam is so universally reviled - because the sender doesn't pay for it, the receiver does. Correct. In all other business areas (arenas) if you want to promote your business *YOU* have to pay, eg functions, snail mail, tv ads, ANY other type of advertising you name it. BUT the internet, hence we have TOTALLY over blown and over the top webpages as the person hosting the page does not need to pay, the one clicking does. Could you imagine what it would be like if I had to pay for the phone call I *GET*? jobst -- Fortune: No such file or directory. __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director _ _.--'-n_/ Barrett Consulting Group P/L The Meditation Room P/L -(_)--(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Strange ngrep readings.
all, I am not sure wether this is related to the new worm, I shutdown all services (httpd, named, squid ...), disconnected my LAN and the LAN based router shows no packages. Yet I still get this when I run ngrep on the internet based card. In case you ask the empty hash are dport 80 based requests: ## I 203.63.73.52 - 210.126.155.34 3:1 E..0ST@.m~...]..q.P8...p.@.iM.. ## I 203.63.73.52 - 210.179.14.129 3:1 E..,o.@.l.]P...I`. .}... ## I 203.63.73.52 - 210.126.79.69 3:1 E..0.$@.n.-..~OE..]P{ ..p.@. ## I 203.63.73.52 - 210.126.155.34 3:1 E..0T.@.m~...]..q.P8...p.@.iM.. ## I 203.63.73.52 - 210.196.171.242 3:1 E..,..@.l..y..]P`. . ## I 203.63.73.52 - 210.179.14.129 3:1 E..,..@.l.]P...I`. .}... Any ideas? jobst -- Programmer - an organism that turns coffee into software ! __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director _ _.--'-n_/ Barrett Consulting Group P/L The Meditation Room P/L -(_)--(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
RE: [SLUG] Remote X login on RH 7.1 - followup
OK, that's fixed it now, thanks, TERM=xterm .. and testing on both remote Xterminal, local console, root user and normal user is all OK now. Indeed I was getting confused (as probably anyone who has tried to man X11)! Cheers, Jill. -- Jill Rowling, Snr Des. Eng. Unix System Administrator Eng. Systems Dept, Aristocrat Technologies Australia 3rd Floor, 77 Dunning Ave Rosebery NSW 2018 Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED] -Original Message- From: Ian Ward [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 18 September 2001 17:08 To: Jill Rowling; slug Subject: Re: [SLUG] Remote X login on RH 7.1 - followup if [ ! $DISPLAY = :0 ] ; then stty erase ^H TERM=XTerm export TERM fi Your getting a little confused, the terminal type is xterm (lowercase) The program called xterm (which does xterm emultation ) looks at /usr/lib/X11/app-defaults/XTerm for its defaults -- CONFIDENTIALITY NOTICE -- This email is intended only to be read or used by the addressee. The information contained in this e-mail message may be confidential information. If you are not the intended recipient, any use, interference with, distribution, disclosure or copying of this material is unauthorised and prohibited. Confidentiality attached to this communication is not waived or lost by reason of the mistaken delivery to you. If you have received this message in error, please delete it and notify us by return e-mail or telephone Aristocrat Technologies Australia Pty Limited on +61 2 9413 6300. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] CCNA
Is CCNA worth doing these days ? I hear it's hard and expensive (?). I did a google on +ccna +sydney site:.au and turned up some broken links and seemingly dodgy sites. Is there an authoritative CCNA site ? Even a FAQ for Australian residents or something. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] kill user and print jobs script
Whats the best way to run a shell script so that it has the right persmissions to kill a user and stop/start and clear down print queues? if I run it as root it works fine, as a user it complains about permissions on files and directories and users etc regards Alister -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] kill user and print jobs script
on Wed, Sep 19, 2001 at 02:43:14PM +1000, Alister Waller [EMAIL PROTECTED] wrote: Whats the best way to run a shell script so that it has the right persmissions to kill a user and stop/start and clear down print queues? You want to kill a user? Thats understandable but extreem, most of us just learn to live with them. if I run it as root it works fine, as a user it complains about permissions on files and directories and users etc We need more info on what you are trying to do. Kill all processes that are running as a particular user? Cant see that you could do this without being root, unless you are themself. The print queue script will also depend on what print software you are using (and how it's been installed) BB -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] CCNA
Expensive, maybe, but hard, i highly doubt ... CCIE theorical exams was not that difficult (ok, the lab is another story), so, if you prepare yourself correctly, you should try directly take the CCNP (my 2cent tip). JeF On Wed, 19 Sep 2001, Steven Blunt wrote: It was about $200 to sit the exam IIRC. The page to look at is: http://www.cisco.com/warp/public/10/wwtraining/certprog/lan/programs/ccna.ht ml For exam details, call Prometric on 1800 808 657. Not sure whether it is worth anything tho, typing CCNA into Seek gives a reasonable number of hits but most would expect experience to match. - Original Message - From: Minh Van Le [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 2:43 PM Subject: [SLUG] CCNA Is CCNA worth doing these days ? I hear it's hard and expensive (?). I did a google on +ccna +sydney site:.au and turned up some broken links and seemingly dodgy sites. Is there an authoritative CCNA site ? Even a FAQ for Australian residents or something. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Security Issue
On Tue, 18 Sep 2001, Lloyd Bayley wrote: Quick question...for some reason, I can no longer run system commands from a telnet session from my windows box on the RH7.1 box. I log in as me, su to root and things like fdisk and ntsysv now say bash: command not found. Try su - instead of just su This starts your new session with root's environment as well as permissions. You're missing the path to the directory with the system binaries in it. DaZZa -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, 19 Sep 2001 [EMAIL PROTECTED] wrote: What is the best firewall that I can install for Windoze 98? Ask on a WindoZe mailing list - someone there might even know, let alone give a stuff. DaZZa -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] [OT] Someone trying to hack me
On Wed, 19 Sep 2001, Mike Holland wrote: the solution is to install linux and setup a firewall-gateway. Forget trying to secure your win98 box. Thats not quite true. There are firewall programs - not as good as a linux firewall box, but OK for personal use. Especially when you dont need any services open. Perhaps. But why the fsck would we want to discuss or recommend them on the Sydney LINUX users group mailing list? But I think the best answer was GTFOML. Amen! Can't argue with that. Especially in light of the obvious beligerrant commentary from the original poster received both on the list and privately. To quote a current ad Some people just don't get it. DaZZa -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug