Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Thomas Iverson
On Thu, Dec 4, 2008 at 1:35 PM, Mário Gamito <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this dual boot Vista-CentOS.
>
> I have one NTFS for Vista, and three for CentOS.
> I boot to both OS through grub.
>
> Unfortunately, I'm going to need the CentOS space for Vista :( :( :(
>
> So my question is: if I remove the CentOS partitions *from within Vista*
> with its tool for it, will I be able to still boot Vista ?
>
> Is grub going to disappear ?
>
> If so, will Vista replace it for its own boot manager, thus allowing to
> boot it ?
>
> Or what ?
>
> I've googled about it, but couldn't find a definitive answer and I can't
> afford losing my Vista data.
>
> Any help would be appreciated.
>
> Warm Regards,
> Mário
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

if you wanna delete linux partitions completely , you will
unfortunately can't load vista when you start up , the reason is ,
grub itself won't disappear , but grub can't load configuration file
which placed under /boot ( because you deleted it )

don't panic , anyway , you won't lose your files on vista , you can
fix the MBR with Windows' own tool and it will boot your windows as
normal

i recommend you try this first in your virtual machine , install two
systems , windows for first , linux for second , and delete the linux
partitions , and try to fix the MBR to boot the Windows , when you
made it in your virtual machine , you'll make it in your real one :)

sorry for my poor english , hope you can understand it fully , cheers

-- 
Keep It Simple Stupid
Thomas X. Iverson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] iptables questionson CentOS

2008-12-04 Thread Indunil Jayasooriya
Hi,

I know these  are a few  iptbales questions. NOT CentOS, anyway, I am
running a firewall on centos 5.x.

If you can response, it would be fine.


I want to add a SNAT rule for one user in LAN to access one particular
destination on the internet.

Let's say www.centos.org

I added the below rule. But . it does NOT work
Pls assume 1.2.3.4 is the real ip of the firewall.
ip address 192.168.101.230 is the client PC

iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT
--to-source 1.2.3.4 -d www.centos.org

Any idea to achieve it?

And Also,

the below rule excludes 1 ip. it works fine.

iptables -t nat -A PREROUTING  -p tcp  -m multiport -s ! 192.168.1.9
--destination-port 80,465,995 -j DNAT --to-destination :3128

 I want to exclude about 4 or 5 ips.

 let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25

 Is there a way to do it?

Hope to hear from you.



-- 
Thank you
Indunil Jayasooriya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SOLVED: Bonding and network cards

2008-12-04 Thread Ralph Angenendt
David Hrbáč wrote:
> So finally got it working, r8169 is a piece of crap, at least at 2.6.18
> kernel :o). 

I think you can drop the last part. They are cheap and good for home
use, I definitely wouldn't use them in a server environment.

Although the driver source seems to imply that mii (or ethtool) can be
used on that card.

Cheers,

Ralph


pgpsfif85pvKX.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Kai Schaetzl
Thomas Iverson wrote on Thu, 4 Dec 2008 17:13:06 +0800:

> don't panic , anyway , you won't lose your files on vista , you can
> fix the MBR with Windows' own tool and it will boot your windows as
> normal

you boot in the recovery console (if that is still there for Vista) and 
use the fixmbr command. You may also need to edit the boot.ini as the 
numbering of the partitions may not be correct anymore after removing 
three of them.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread John R Pierce
Kai Schaetzl wrote:
> Thomas Iverson wrote on Thu, 4 Dec 2008 17:13:06 +0800:
>   
>> don't panic , anyway , you won't lose your files on vista , you can
>> fix the MBR with Windows' own tool and it will boot your windows as
>> normal
>> 
>
> you boot in the recovery console (if that is still there for Vista) and 
> use the fixmbr command. 
>   


its not. 

you boot the Vista CD and do a repair and its fairly automagical, but 
with any luck will do what he needs.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Mohan
Mário Gamito wrote:
> Hi,
>
> I have this dual boot Vista-CentOS.
>
> I have one NTFS for Vista, and three for CentOS.
> I boot to both OS through grub.
>
> Unfortunately, I'm going to need the CentOS space for Vista :( :( :(
>
> So my question is: if I remove the CentOS partitions *from within Vista*
> with its tool for it, will I be able to still boot Vista ?
>
> Is grub going to disappear ?
>
> If so, will Vista replace it for its own boot manager, thus allowing to
> boot it ?
>
> Or what ?
>
> I've googled about it, but couldn't find a definitive answer and I can't
> afford losing my Vista data.
>
> Any help would be appreciated.
>
> Warm Regards,
> Mário
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>   
Hi

If you are deleting /boot partition or if you dont have a separate /boot 
partition and boot partition is mounted under / and if you delete that 
partition for more space yes you will have trouble booting vista. As 
grub cant find the kernel and menu.lst file you would see the normal 
grub command prompt rather than seeing a grub menu.

The easiest fix for this issue is even if you delete your linux 
partitions what the best you can do is fix/rewrite the mbr for vista 
which can be did easily with a bootable vista cd.
http://apcmag.com/how_to_dual_boot_vista_and_xp_with_vista_installed_first__the_stepbystep_guide.htm?page=4

Follow the above url from Repair your computer and proceed till the 
startup repair step and once you are done reboot the machine you should 
see your vista boot screen.

Hope this fixes your issue.

--
Regards,

Mohan.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables questionson CentOS

2008-12-04 Thread Robert Moskowitz
Indunil Jayasooriya wrote:
> Hi,
>
> I know these  are a few  iptbales questions. NOT CentOS, anyway, I am
> running a firewall on centos 5.x.
>
> If you can response, it would be fine.
>
>
> I want to add a SNAT rule for one user in LAN to access one particular
> destination on the internet.
>   

May sound a little smug, but get Shorewall and use it to manage your 
iptables rules. It has worked well for me and many others.

> Let's say www.centos.org
>
> I added the below rule. But . it does NOT work
> Pls assume 1.2.3.4 is the real ip of the firewall.
> ip address 192.168.101.230 is the client PC
>
> iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT
> --to-source 1.2.3.4 -d www.centos.org
>
> Any idea to achieve it?
>
> And Also,
>
> the below rule excludes 1 ip. it works fine.
>
> iptables -t nat -A PREROUTING  -p tcp  -m multiport -s ! 192.168.1.9
> --destination-port 80,465,995 -j DNAT --to-destination :3128
>
>  I want to exclude about 4 or 5 ips.
>
>  let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25
>
>  Is there a way to do it?
>
> Hope to hear from you.
>
>
>
>   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stop the FUD Xen is not deprecated

2008-12-04 Thread Matej Cepl
On 2008-12-04, 00:42 GMT, Christopher Chan wrote:
> What would you pick? Learn a few new commands/configuration 
> files or have to prep up a new desktop rollout every six 
> months?

12 -- Fedora 8 is still pretty good and only now you would have 
to switch to F10. Actually, I know about many people who skipped 
F9 completely, and I don't blame them.

> I believe in using the right tool for the job. So I might pick 
> OpenBSD for a firewall over Linux depending on what needs to be 
> on firewall/nat gateway.

Cool. Of course, you would have to have to familiarize with the 
new environment, but I guess you know that.

> RHEL/Fedora is not the ultimate answer for everything although 
> we'd like it to be

I would have a question about Ubuntu LTS. What are your 
experience with it? How much they really maintain it or is it (as 
I suspect; note, I have on experience with it, so I am not 
claiming anything) just that they throw LTS label on one of their 
releases and fix security issues only?

Best,

Matěj

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Kai Schaetzl
John R Pierce wrote on Thu, 04 Dec 2008 02:39:34 -0800:

> its not.

I feared that :-(

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] What ever happened to the dkms atheros drivers/

2008-12-04 Thread Robert Moskowitz
Mark Pryor wrote:
>
> --- On Wed, 12/3/08, Robert Moskowitz <[EMAIL PROTECTED]> wrote:
>
>   
>> From: Robert Moskowitz <[EMAIL PROTECTED]>
>> Subject: [CentOS] What ever happened to the dkms atheros drivers/
>> To: "CentOS mailing list" 
>> Date: Wednesday, December 3, 2008, 2:47 PM
>> My OQO boxes have the AR5413 wifi chipset, so for the first
>> time in 
>> quite a while, I again need to run madwifi.  So I went
>> looking for the 
>> dkms madwifi rpms, but could not find them.  They use to be
>> on rpmforge, 
>> as I recall.  dkms is there.
>>
>> 
> It's still there, called
> madwifi
>
> You might expect it to be called dkms-madwfi, but there is no  prefix. 
> It still is hooked in to the dkms model.

They could have least put in the discription that it uses dkms. Well I 
did the yum install, and it did grab dkms to complete the dependencies. Yea!


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Is anyone using Review Board on CentOS 5?

2008-12-04 Thread Alfred von Campe
I'm trying to install Review Board (http://review-board.org) with  
python-setup tools and "sudo easy_install ReviewBoard", but this  
fails as follows:

easy_install ReviewBoard
Searching for ReviewBoard
Best match: ReviewBoard 0.9.dev-20081202
Processing ReviewBoard-0.9.dev_20081202-py2.4.egg
ReviewBoard 0.9.dev-20081202 is already the active version in easy- 
install.pth
Installing rb-site script to /usr/bin

Using /usr/lib/python2.4/site-packages/ReviewBoard-0.9.dev_20081202- 
py2.4.egg
Processing dependencies for ReviewBoard
Searching for PIL
Reading http://www.review-board.org/downloads/mirror/
Reading http://www.review-board.org/downloads/nightlies/
Best match: PIL 1.1.6
Downloading http://www.review-board.org/downloads/mirror/ 
PIL-1.1.6.tar.gz
Processing PIL-1.1.6.tar.gz
Running PIL-1.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install- 
t4JHIx/PIL-1.1.6/egg-dist-tmp-t3asKn
The required version of setuptools (>=0.6c7) is not available, and
can't be installed while this script is running. Please install
  a more recent version first.

(Currently using setuptools 0.6c5 (/usr/lib/python2.4/site-packages))
error: Setup script exited with 2

Unfortunately, the python-setuptools for CentOS 5 is version  
0.6c5-2.  I already have python-imaging-1.1.5-5 installed, but the  
configuration is trying to install PIL 1.1.6.  I've never used  
easy_install/python-setuptools before (I'd never heard of it until I  
read the installation instructions for Review Board), so I don't know  
if it's possible to modify the configuration files to use PIL 1.1.5.   
Or if there is another/better way to install Review Board.  So before  
I re-invent the wheel, has anyone else successfully installed Review  
Board on CentOS 5 and is willing to share their experience?

Thanks,
Alfred

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables questionson CentOS

2008-12-04 Thread Barry Brimer
> I want to add a SNAT rule for one user in LAN to access one particular
> destination on the internet.
>
> Let's say www.centos.org
>
> I added the below rule. But . it does NOT work
> Pls assume 1.2.3.4 is the real ip of the firewall.
> ip address 192.168.101.230 is the client PC
>
> iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT
> --to-source 1.2.3.4 -d www.centos.org
>
> Any idea to achieve it?

The destination should be before the SNAT ... so try this:

iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -d 
www.centos.org -j SNAT --to-source 1.2.3.4

> the below rule excludes 1 ip. it works fine.
>
> iptables -t nat -A PREROUTING  -p tcp  -m multiport -s ! 192.168.1.9
> --destination-port 80,465,995 -j DNAT --to-destination :3128
>
> I want to exclude about 4 or 5 ips.
>
> let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25
>
> Is there a way to do it?

Not that I can think of.  If these IP addresses were in a contiguous 
block, it might be able to be summarized by one or two subnet statements 
instead of individual rules for each.

Hope this helps.

Barry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stop the FUD Xen is not deprecated

2008-12-04 Thread Kai Schaetzl
cz>

Matej Cepl wrote on Thu, 04 Dec 2008 13:48:17 +0100:

> I would have a question about Ubuntu LTS. What are your 
> experience with it?

Folks, can you please move this discussion off-list? Thanks.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB Timeout problem

2008-12-04 Thread Mark Snyder
Robert Nichols wrote:
> Mark Snyder wrote:
>   
>> I recently installed CentOS 5.1 on a DL71 ASI notebook. 
>>
>> After my yum update the timeout parameter in /boot/grub/grub.conf file 
>> has no effect.  It sits at the grub screen forever unless I press the 
>> enter key to select a kernel, at which point it will boot.
>>
>> Any help or suggestions to fix this would be much appreciated
>>
>> CentOS release 5.2 (Final)
>> Kernel 2.6.18-92.1.18.el5 on an i686
>>
>> # grub.conf generated by anaconda
>> #
>> # Note that you do not have to rerun grub after making changes to this file
>> # NOTICE:  You have a /boot partition.  This means that
>> #  all kernel and initrd paths are relative to /boot/, eg.
>> #  root (hd0,0)
>> #  kernel /vmlinuz-version ro root=/dev/hda3
>> #  initrd /initrd-version.img
>> #boot=/dev/hda
>> default=0
>> timeout=10
>> splashimage=(hd0,0)/grub/splash.xpm.gz
>> hiddenmenu
>> title CentOS (2.6.18-92.1.18.el5)
>> root (hd0,0)
>> kernel /vmlinuz-2.6.18-92.1.18.el5 ro root=LABEL=/ rhgb quiet
>> initrd /initrd-2.6.18-92.1.18.el5.img
>> title CentOS (2.6.18-53.el5)
>>root (hd0,0)
>>kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet
>>initrd /initrd-2.6.18-53.el5.img
>> ~
>> ~
>> "grub.conf" 21L, 725C
>> 
>
> The NOTICE generated by anaconda indicates a separate /boot partition.
> Be sure that you are editing the grub/grub.conf file that is in your
> boot partition (hda1) and not a similar, but superfluous, file that
> you find under /boot in your root filesystem when your /boot partition
> is not mounted.
>
>   
I did a find for grub.conf and there are two copies of this file on the 
system, one in /etc and one in /boot/grub however the file in /etc is 
just a link back to /boot/grub/grub.conf

To check that this is the file being used I commented out the second 
title which then did not appear on the grub screen so I am sure that I 
am editing the correct file.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Steven Vishoot




- Original Message 
> From: Kai Schaetzl <[EMAIL PROTECTED]>
> To: centos@centos.org
> Sent: Thursday, December 4, 2008 7:31:29 AM
> Subject: Re: [CentOS] Help on deleting partitions
> 
> John R Pierce wrote on Thu, 04 Dec 2008 02:39:34 -0800:
> 
> > its not.
> 
> I feared that :-(
> 
> Kai
> 
> -- 
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com
> 
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos


sorry for hijacking this thread if it seems i am doing that.

does these procedure work on XP too or is it totally different ball game...

thanks

steven

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help on deleting partitions

2008-12-04 Thread Kai Schaetzl
Steven Vishoot wrote on Thu, 4 Dec 2008 07:59:13 -0800 (PST):

> does these procedure work on XP too or is it totally different ball game...

on XP you can use the recovery console, or you can do the repair as well. 
Using the recovery console makes sure that nothing else gets changed.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] does anyone have experience with clusters?

2008-12-04 Thread Kwan Lowe
>  I have used Linux Heartbeat to failover a MySQL cluster before, and
>  it's actually been running very well for about 3 years now. But, I
>  want to start looking @ total clustering, with DRBD - where everything
>  (not just MySQL) is being replicated across the 4 machines. I'm also
>  intereated in load balancing.

 > The cluster will be running / hosting a few XEN Virtual Machines, and
 > idealy if one PC / server dies (hardware failure / power failure /
 > etc), then on of the other machines should still be running the
 > virtual machines, i.e. no downtime. Is this possible? Can somone steer
 > me into a direction where I can get more info on this?

I've done some similar types of setups:

1) The first setup included two physical machines running separate Xen
VMs with the critical data on a DRBD store:  Setup was quite easy
using docs for DRBD and HA on the HowtoForge site.  No difference in
using the Xen environment except that I used a second NIC instead of a
serial cable. Works great for a webserver. I was also running the
CentOS directory server with this setup until I got replication
working.

2) Second setup was to place the heartbeat on the physical machines.
On failure, it would autostart the Xen VM.  It worked, but was a PITA
to get right. The reason to do this was to only use resources when the
machine failed, rather than allocating the 1G constantly.

I'm currently trying to get live VM migration running under Xen.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Off-distro content; was: Stop the FUD Xen is not deprecated

2008-12-04 Thread R P Herrold
On Thu, 4 Dec 2008, Matej Cepl wrote:

> On 2008-12-04, 00:42 GMT, Christopher Chan wrote:
>> What would you pick? Learn a few new commands/configuration
>> files or have to prep up a new desktop rollout every six
>> months?
>
> 12 -- Fedora 8 is still pretty good and only now you would have
> to switch to F10. Actually, I know about many people who skipped
> F9 completely, and I don't blame them.

hi, Matej

Almost all (I cannot think of any exceptions, but there may 
be) of the core centos team do not run off-topic threads on 
either the fedora or RHEL lists;  May we have the same 
courtesy?

-- Russ herrold
herrold at centos dot org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Off-distro content; was: Stop the FUD Xen is not deprecated

2008-12-04 Thread MHR
On Thu, Dec 4, 2008 at 9:50 AM, R P Herrold <[EMAIL PROTECTED]> wrote:
>
> Almost all (I cannot think of any exceptions, but there may
> be) of the core centos team do not run off-topic threads on
> either the fedora or RHEL lists;  May we have the same
> courtesy?
>

I just want to add a kudos and thanks to the centos team - I don't
know how you guys do all of what you do, but I am sincerely grateful.
(I have trouble enough keeping up with my usual stream of email and
only about three or four lists, including centos.)

Keep up the good^h^h^h^hGREAT work!

Mark Hull-Richter
CentOS/Linux/C Software Developer
Registered Linux User #472807
- sign up at http://counter.li.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Is anyone using Review Board on CentOS 5?

2008-12-04 Thread R P Herrold
On Thu, 4 Dec 2008, Alfred von Campe wrote:

> I'm trying to install Review Board (http://review-board.org) with

cough cough  ... as pointed to by INSTALL

http://code.google.com/p/reviewboard/wiki/GettingStarted
http://f13o.blogspot.com/2008/01/install-reviewboard-on-centos-51.html

Thanks for pointing this project out.

-- Russ herrold

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is anyone using Review Board on CentOS 5?

2008-12-04 Thread Alfred von Campe
On Dec 4, 2008, at 13:28, R P Herrold wrote:

> cough cough  ... as pointed to by INSTALL
>
> http://code.google.com/p/reviewboard/wiki/GettingStarted
>   http://f13o.blogspot.com/2008/01/install-reviewboard-on- 
> centos-51.html

Oops, I guess I didn't read far enough down on the GettingStarted  
page.  Thanks for pointing that out (I say with a red face).

Alfred

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB Timeout problem

2008-12-04 Thread Lanny Marcus
On Wed, Dec 3, 2008 at 4:44 PM, Mark Snyder <[EMAIL PROTECTED]> wrote:
> I recently installed CentOS 5.1 on a DL71 ASI notebook.

> After my yum update the timeout parameter in /boot/grub/grub.conf file
> has no effect.  It sits at the grub screen forever unless I press the
> enter key to select a kernel, at which point it will boot.
>
> Any help or suggestions to fix this would be much appreciated


Have you tried to reinstall GRUB? If you do, possibly the problem will go away.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables questionson CentOS

2008-12-04 Thread Robert Spangler
On Thursday 04 December 2008 04:21, Indunil Jayasooriya wrote:

>  Hi,
>
>  I know these  are a few  iptbales questions. NOT CentOS, anyway, I am
>  running a firewall on centos 5.x.
>
>  If you can response, it would be fine.
>
>
>  I want to add a SNAT rule for one user in LAN to access one particular
>  destination on the internet.
>
>  Let's say www.centos.org
>
>  I added the below rule. But . it does NOT work
>  Pls assume 1.2.3.4 is the real ip of the firewall.
>  ip address 192.168.101.230 is the client PC
>
>  iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT
>  --to-source 1.2.3.4 -d www.centos.org
>
>  Any idea to achieve it?
>
>  And Also,
>
>  the below rule excludes 1 ip. it works fine.
>
>  iptables -t nat -A PREROUTING  -p tcp  -m multiport -s ! 192.168.1.9
>  --destination-port 80,465,995 -j DNAT --to-destination :3128
>
>   I want to exclude about 4 or 5 ips.
>
>   let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25
>
>   Is there a way to do it?
>
>  Hope to hear from you.

I take it the firewall has 2 interfaces WAN and LAN.  Without knowing how you 
have things setup now you could simple add the following:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -i  -s 192.168.1.11 -j DROP
iptables -i  -s 192.168.1.19 -j DROP
iptables -i  -s 192.168.1.25 -j DROP

Should any of these ip's need access to the firewall then you nedd to place 
those rules before these.


-- 

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos