LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2008, 03:50 AM   #1
krish_vrp
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
Help on iptables!!!!!!


I am using a SuSE Linux Ent Server 10 SP1 box

I have an interface with 10 virtual interfaces and I have 10 users

I want to map each user to one IP so I can distinguish them even outside the network. So I tried the following and got this error.

iptables -t nat -A OUTPUT -m owner --owner-id 1000 -j SNAT --to-source x.x.x.x (where this is one the virtual IPs)

but it throws me unknown error 4294967295

can anyone help me out!!
 
Old 05-20-2008, 11:53 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by krish_vrp View Post
I am using a SuSE Linux Ent Server 10 SP1 box

I have an interface with 10 virtual interfaces and I have 10 users

I want to map each user to one IP so I can distinguish them even outside the network. So I tried the following and got this error.

iptables -t nat -A OUTPUT -m owner --owner-id 1000 -j SNAT --to-source x.x.x.x (where this is one the virtual IPs)

but it throws me unknown error 4294967295

can anyone help me out!!
It's supposed to be --uid-owner, not --owner-id. Also keep in mind that the owner match module only works in the OUTPUT chain of the filter table.
 
Old 05-21-2008, 02:51 AM   #3
krish_vrp
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
oh....that was a typo i spelled it rite only when i executed....ur true it only works in OUTPUT of FILTER but also works in POSTROUTING.....i got the problem solved by putting in POSTROUTING of NAT...neway thanks for ur reply!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration