LinuxQuestions.org
Help answer threads with 0 replies.
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 03-28-2004, 05:17 PM   #1
Anxiety
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Need help with iptables error.


I'm trying to set up ip forwarding to a port other than 80 on my SuSE 9 box to allow me to use DVArchive as a non-root user and I'm having some issues with the iptables commands. I want to do this:

/usr/sbin/iptables -A PREROUTING -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198
/usr/sbin/iptables -A OUTPUT -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198

Which used to work fine when I was running Red Hat.

The PREROUTING chain sets fine, but now with SuSE on the OUTPUT chain I get this error:

/usr/sbin/iptables -A OUTPUT -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198 -v
DNAT tcp opt -- in * out * 0.0.0.0/0 -> 192.168.1.118 tcp dpt:80 to:192.168.1.118:13198
iptables: Invalid argument

I know just enough to get in trouble with iptables I'm afraid, can someone help me debug this?

Thanks!
 
Old 03-31-2004, 03:01 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
For me '--to 192.168.1.118:13198' is suspicious (no 'man iptables' match). Try '--to-destination 192.168.1.118:13198' .
 
  


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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
iptables error moger Slackware 2 06-12-2004 10:51 PM
iptables error... HappyDude Linux - Security 4 07-14-2003 07:37 PM
iptables error dat64597 Linux - Security 3 02-03-2003 01:52 PM
IPTables Error X11 Linux - Software 3 07-18-2002 01:18 AM

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

All times are GMT -5. The time now is 03:34 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