[CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Alexander Farber
Hello, I'm a user (and big fan) of CentOS 5.6 and in my /etc/sysconfig/iptables there are few blocking rules for some annoying visitors of my website (I run a card game there since many years and some people are "special"): *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [294:35064]

Re: [CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Nicolas Thierry-Mieg
Alexander Farber wrote: > Is there a way to add comments to the iptables file? > A hash mark # does not seem to work. assuming you are talking about /etc/sysconfig/iptables , hash is indeed the comment mark, and works fine. In my file on this system all comment lines have a hash as first charac

Re: [CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Alexander Farber
Ouch you're correct. I only tried end-of-line comments, sorry On Sun, Apr 24, 2011 at 9:30 AM, Nicolas Thierry-Mieg wrote: > Alexander Farber wrote: >> Is there a way to add comments to the iptables file? >> A hash mark # does not seem to work. > > assuming you are talking about /etc/sysconfig/ip

Re: [CentOS] Adding comments to /etc/sysconfig/iptables

2011-04-24 Thread Kai Schaetzl
Alexander Farber wrote on Sun, 24 Apr 2011 09:04:30 +0200: > i.e. there is "sudo service iptables save", > but I've yet to discover its usefulness You can add rules on the fly and save them. For instance, I have a certain "starter script" with iptables rules and other filtering stuff grown over

Re: [CentOS] random roundoff?

2011-04-24 Thread Leonard den Ottolander
Hello Michael, On Sun, 2011-04-24 at 02:54 +, Michael D. Berger wrote: >cerr << "some stuff" << endl; >mat3 = matmult(mat1,mat2); > > I get a difference of the order 1.0e-15 depending on whether the > cerr line does or does not end in "endl" as shown. If the exact same input produces

[CentOS] Curious fdisk report on large disk

2011-04-24 Thread Timothy Murphy
I have a 1.5TB internal disk on my server. I partitioned this with fdisk, and CentOS-5.6 runs perfectly on it. But fdisk gives a very strange report. Here is the perfectly normal response to mount: - /dev/sdb10 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /

[CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Timothy Murphy
I have a LinkSys WRT54GL router, which I would like to attach to my CentOS-5.6 server, to set up a LAN 192.168.2.* . The server is attached to the internet through a Billion modem/router which has a single ethernet outlet. The instructions for the LinkSys router assume that it is being attached di

[CentOS] SNMP issues since 5.6 upgrade

2011-04-24 Thread Paul Stewart
Hi there... I scanned the archives and did some Google'ing ... can find some references to these errors but didn't find a solution. This started when upgrading some servers from 5.5 to 5.6 release. It's net-snmp creating a lot of errors in the /var/log/messages suddenly. I do believe this

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Kenni Lund
2011/4/24 Timothy Murphy : > I have a LinkSys WRT54GL router, > which I would like to attach to my CentOS-5.6 server, > to set up a LAN 192.168.2.* . > The server is attached to the internet > through a Billion modem/router which has a single ethernet outlet. > > The instructions for the LinkSys ro

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Robert Heller
At Sun, 24 Apr 2011 17:08:50 +0200 CentOS mailing list wrote: > > 2011/4/24 Timothy Murphy : > > I have a LinkSys WRT54GL router, > > which I would like to attach to my CentOS-5.6 server, > > to set up a LAN 192.168.2.* . > > The server is attached to the internet > > through a Billion modem/ro

Re: [CentOS] Curious fdisk report on large disk

2011-04-24 Thread Christopher J. Buckley
Hi Timothy, > Does fdisk not like large disks? fdisk cannot handle drives >2TB (you can use parted to work around this, using gpt label rather than msdos). However, this should not affect you, as your drive is well within fdisk's limits. Do you have any idea why the system type is Speedstor inst

Re: [CentOS] Migrating standalone systems to KVM

2011-04-24 Thread Jussi Hirvi
> Jussi Hirvi writes: > >> > A while ago I got great instructions from Pasi for migrating standalone >> > systems to*xen*. However, now I have decided to use KVM instead, which >> > raises a new question: >> > >> > How to migrate a standalone system to*KVM*? >> > >> > I know a two-step way to

[CentOS] Migrating standalone systems to KVM

2011-04-24 Thread R P Herrold
On Sun, 24 Apr 2011, Jussi Hirvi wrote: > Does anyone have the .iso image of virt-p2v? It is not available anymore > through that link. The source is available, but building it requires a > *lot* of packages, some of which seem to be hard to find. I have a copy in my archive, but how about contac

Re: [CentOS] Migrating standalone systems to KVM

2011-04-24 Thread Jussi Hirvi
> On Sun, 24 Apr 2011, Jussi Hirvi wrote: >> > Does anyone have the .iso image of virt-p2v? It is not available anymore >> > through that link. The source is available, but building it requires a >> > *lot* of packages, some of which seem to be hard to find. Good idea, but I begin to be short

[CentOS] Migrating standalone systems to KVM

2011-04-24 Thread R P Herrold
On Sun, 24 Apr 2011, Jussi Hirvi wrote: > RJ's website says he is (was?) in the process of rewriting virt-p2v. > >> I have a copy in my archive, but how about contacting Richard >> Jones, and asking him for an update or replacement? I'll shuttle it out into public bandwidth and advice you privat

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Timothy Murphy
Kenni Lund wrote: >> I have a LinkSys WRT54GL router, >> which I would like to attach to my CentOS-5.6 server, >> to set up a LAN 192.168.2.* . >> The server is attached to the internet >> through a Billion modem/router which has a single ethernet outlet. > Without any information on what the pur

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Johnny Hughes
On 04/24/2011 01:15 PM, Timothy Murphy wrote: > Kenni Lund wrote: > >>> I have a LinkSys WRT54GL router, >>> which I would like to attach to my CentOS-5.6 server, >>> to set up a LAN 192.168.2.* . >>> The server is attached to the internet >>> through a Billion modem/router which has a single ethe

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Timothy Murphy
Robert Heller wrote: > I would guess that the OP just wants a Wireless Access Point. It is > hard (impossible at retail outlets) to get 'just an Access Point', > although I think Linksys, et. al. still make just plain Access Points > these are no longer commonly available at the retail level. >

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Robert Nichols
On 04/24/2011 01:15 PM, Timothy Murphy wrote: > I don't actually think my motives are relevant. > In case I didn't described the situation clearly, > my CentOS server is connected to an ADSL modem by ethernet (eth0). > The modem's IP address is 192.168.1.254 . > > I have a second NIC on my server (

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Robert Heller
At Sun, 24 Apr 2011 21:11:31 +0200 CentOS mailing list wrote: > > Robert Heller wrote: > > > I would guess that the OP just wants a Wireless Access Point. It is > > hard (impossible at retail outlets) to get 'just an Access Point', > > although I think Linksys, et. al. still make just plain A

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Anthony
On 25/04/11 04:15, Timothy Murphy wrote: > Do you have a LinkSys router with an IP address other than 192.168.1.1 , > or even better with an address other than 192.168.1.* ? > If you have, could you tell me _how_ you did it, please. > I don't really care _why_ you did it. > > The instructions on

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread John R Pierce
On 04/24/11 11:15 AM, Timothy Murphy wrote: >> > Without any information on what the purpose of such a setup would be, >> > it's close to impossible to give you any recommendations. Is it >> > because you want to use your CentOS system as a firewall? a router? a >> > HTTP proxy? a network sniff

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Ljubomir Ljubojevic
Timothy Murphy wrote: > I don't actually think my motives are relevant. > In case I didn't described the situation clearly, > my CentOS server is connected to an ADSL modem by ethernet (eth0). > The modem's IP address is 192.168.1.254 . It is very much relevant. I am in WISP business for last 7 ye

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Ljubomir Ljubojevic
Anthony wrote: > On 25/04/11 04:15, Timothy Murphy wrote: >> Do you have a LinkSys router with an IP address other than 192.168.1.1 , >> or even better with an address other than 192.168.1.* ? >> If you have, could you tell me _how_ you did it, please. >> I don't really care _why_ you did it. >>

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Ljubomir Ljubojevic
John R Pierce wrote: > On 04/24/11 11:15 AM, Timothy Murphy wrote: Without any information on what the purpose of such a setup would be, it's close to impossible to give you any recommendations. Is it because you want to use your CentOS system as a firewall? a router? a HTT

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Timothy Murphy
Robert Heller wrote: >> That is more or less exactly what I'm hoping to achieve - >> except that I would like my server also to be my DHCP server. >> But I'll start off with you method, and see how I get on. > > I use my 'desktop' as a DHCP server (amoungst other things) in addition > to being my

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Timothy Murphy
John R Pierce wrote: > I don't actually think my motives are relevant. >> In case I didn't described the situation clearly, >> my CentOS server is connected to an ADSL modem by ethernet (eth0). >> The modem's IP address is 192.168.1.254 . > > your goal is very relevant if youj are expecting us to

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Robert Heller
At Mon, 25 Apr 2011 09:10:36 +1000 CentOS mailing list wrote: > > On 25/04/11 04:15, Timothy Murphy wrote: > > Do you have a LinkSys router with an IP address other than 192.168.1.1 , > > or even better with an address other than 192.168.1.* ? > > If you have, could you tell me _how_ you did

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread John R Pierce
On 04/24/11 6:05 PM, Timothy Murphy wrote: > Can one actually have two NICs on a computer in the same LAN? > I would have thought that would cause problems? > you can setup a bridge to do that, but the firewall rules are a little trickier (at least, most of the linux firewall packages assume you

Re: [CentOS] Attaching LinkSys WRT54GL to CentOS machine

2011-04-24 Thread Anthony
On 25/04/11 09:34, Ljubomir Ljubojevic wrote: > > His ADSL modem is already on 192.168.1.x subnet, so CentOS WAN NIC > already uses it. And I do not expect resetting router to defaults every > week. Maybe never. > > Ljubomir > Ah yes - forgot that titbit of information - :(. In that case, what y