Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,215
» Latest member: CharlesGarfield020
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 546 online users.
» 0 Member(s) | 545 Guest(s)
Bing

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 420
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 86,463
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 40,622
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,869
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,340
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,340
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 116,474
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 54,320
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 44,613
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 41,832

 
  time?
Posted by: lerum - 2004-12-31, 11:51 AM - Forum: Suggestion Box - Replies (2)


Is the time right on the forums?

When it says it is 12:48 on the forums it says on my computer 12:07.

 

It may just be me but i do look at the time users post and it would be helpful to know when they were posted exactly.

 

Thanks :)

Print this item

  Hi, fee fi foe, I smell the blood of a English man
Posted by: Mistix - 2004-12-31, 12:57 AM - Forum: Hello - Replies (3)


Hi all,

 

My name is Mistix, I am 17, I have a handfull of computers and am a complete noob to Linux, I mainly hang around EFnet #Linux-Noob, nice guys and girls in there. I have nothing else to say. Thanks for you valuable time.

Print this item

  Links to Iptables tutorials and related documents
Posted by: P38 - 2004-12-30, 11:58 PM - Forum: Security and Firewalls - No Replies


Here is an excellent reference to creating and understanding an Iptables firewall.

 

Iptables Tutorial 1.1.19

 

for a PDF version that you can download and print out,

 

Downloadable PDF of the above tutorial.

Print this item

  Tsunami
Posted by: lerum - 2004-12-30, 10:40 PM - Forum: General Chat - Replies (3)


Isn't it horrible how something like that is liable to happen and kill all of those people. I mean there wasn't much that the countries could do in preparation for something quite so severe. :(

I don't think it would have been worse on land though, because it would be more localised and the Tsunami would never have occured.

 

On the other hand it is quite remarkable how the world is uniting in donating aid and helping out the affected.

 

 

Please donate to a charity helping to combat the diseases and hunger caused by the awful power of mother nature. ;)

Print this item

  Suse 9.2 and SATA drives
Posted by: kryppe - 2004-12-29, 08:24 PM - Forum: SUSE - Replies (12)


How can I use my SATA drives under Suse 9.2 ? Suse finds all other IDE drives without any problem, but I am missing 2 drives. I have winXP on 1 IDE drive and Suse on another IDE drive. Suse only see itself and another IDE drive (not the XP). Any suggestions?

 

tia, kryppe

Print this item

  Need an ftp client
Posted by: kryppe - 2004-12-29, 06:17 PM - Forum: SUSE - Replies (2)


Looking for a ftp client to go with Suse 9.2 pro. Have tried the BearFTP thingy that comes with it, but it screwes up my start menu... :S Any suggestions? Need to have a graphical frontend. Have tried running FlashFXP (which is the favourite... ;) ) under wine, but it seems to hang and ends up useless.

 

tia, kryppe

Print this item

  Tsunami Relief Fund
Posted by: P38 - 2004-12-29, 04:02 PM - Forum: Site News - Replies (3)


[Image: AsiaDSMasthd.gif]

 

Donate here:

 

[/url][url=https://www.redcross.org/donate/donation-form.asp]https://www.redcross.org/donate/donation-form.asp

Print this item

  Can someone tell me?!?!
Posted by: lerum - 2004-12-29, 02:26 PM - Forum: Windows - Replies (8)


This would only happen in windows!

One CPU *magically* turns into two overnight! o_O

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-12-1104330439.gif" data-fileid="244">[img]<fileStore.core_Attachment>/post-12-1104330439.gif[/img]</a>



Attached Files
.gif   wow.gif (Size: 346.41 KB / Downloads: 0)
Print this item

  simple automated backup of apache (your websites)
Posted by: anyweb - 2004-12-29, 10:22 AM - Forum: LAMP - Replies (24)


This will create a dated and compressed tar backup once a week, of everything in /usr/local/apache into the /backup/ directory.

 

This certaintly may be useful considering the amount of worms floating around at the moment (like Santy, which overwrite all php and html files with rubbish)

 

** this assumes you have your websites in /usr/local/apache as per the apache/mysql/php compilation howto in this forum, obviously, if they are not in that path, edit the path to point to your websites/code **

 

(thanks Kobras for advising me here)

 

Simply do as follows:

 

 



Code:
vi /etc/cron.weekly/apache.cron




 

ok now paste the following into this blank file

 



Code:
#!/bin/sh
/bin/tar -jcf /backup/apache_backup_`date | awk '{print $2}'`_`date | awk '{print $3}'`_`date | awk '{print $6}'`.tar.bz2 /usr/local/apache/ 1&>/dev/null 2&>/dev/null




 

save the file and now make it executable

 

 



Code:
chmod +x /etc/cron.weekly/apache.cron




 

ok, create the /backup directory

 



Code:
mkdir /backup




 

and test the script (to see that it works)

 



Code:
/etc/cron.weekly/apache.cron




 

if all goes well you should see a file like this in your /backup directory

 

 

 

Quote:[root@www root]# ls -alsrxh /backuptotal 140M

140M apache_backup_Dec_29_2004.tar.bz2  4.0K ..  4.0K .
 

ok that's it ! all done,

 

now you may want to write another script to 'auto delete' a file if older than two weeks, otherwise your hard disc may soon fill up with backups.

 

cheers

 

anyweb

Print this item

  How to block local users ports and ips
Posted by: KobrAs - 2004-12-29, 08:42 AM - Forum: Security and Firewalls - Replies (2)


Want to block a local user to access a specific port or a specific ip ?

linux-noob.com will help you how to do that :

 

[root@test tmp]# id test

uid=503(test) gid=503(test) groups=503(test)

[root@test tmp]#

(look at uid= and gid=)

 

How to block a local user to access any outside ports ?



Code:
iptables -t filter -A OUTPUT -p tcp --dport 6667 --match owner --uid-owner 503 -j DROP




(you may need to change tcp to udp or icmp and --uid-owner to other uid)

 

How to block a local group to access any outside ports ?

(lets find group 'users' gid by doing grep -i users /etc/group)



Code:
iptables -t filter -A OUTPUT -p tcp --match owner --gid-owner 100 -j DROP




 

For blocking just specific ports just add --dport port or --sport port after -p protocol

 



Code:
iptables -t filter -A OUTPUT -p tcp --dport 6667 --match owner --uid-owner 503 -j DROP




 



Code:
iptables -t filter -A OUTPUT -p tcp --dport 6667 --match owner --gid-owner 100 -j DROP




 

How to block a specific range of ports ?

 



Code:
iptables -t filter -A OUTPUT -p tcp --dport 1:1024 --match owner --uid-owner 503 -j DROP




(you may need to change the range 1:1024 (all ports from 1 to 1024) and the uid)

 

How to block a specific ip destination or source or a specific class (a 256 ips class) on all protocols and ports or to specific port(s)?

 

destination :



Code:
iptables -t filter -A OUTPUT -d 199.9.9.9 --match owner --uid-owner 503 -j DROP




 

source :



Code:
iptables -t filter -A OUTPUT -s 199.9.9.9 --match owner --uid-owner 503 -j DROP




 

full class :



Code:
iptables -t filter -A OUTPUT -d 199.9.9.0/24 --match owner --uid-owner 503 -j DROP






Code:
iptables -t filter -A OUTPUT -s 199.9.9.0/24 --match owner --uid-owner 503 -j DROP




 

specific destination or source specific ports or range :



Code:
iptables -t filter -A OUTPUT -d 199.9.9.0/24 --dport 6667 --match owner --uid-owner 503 -j DROP






Code:
iptables -t filter -A OUTPUT -d 199.9.9.0/24 --dport 1:1024 --match owner --uid-owner 503 -j DROP




 

(you many need to change tcp to udp or icmp and --gid-owner to other gid)

 

(the ips and ports used here are just examples)

 

Thats all for today.

 

Greets goes out to ... linux-noob.com

Print this item