LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-02-2005, 08:31 AM   #16
patvrs
LQ Newbie
 
Registered: Jul 2005
Posts: 12

Original Poster
Rep: Reputation: 0

work after re-compÓle kernel.. with CONFIG_IP_NF_NAT_LOCAL=Y

see my post 6 & 8


but I found a workaround:

MY WISH..
if someone go to 200.200.200.200 (externe ip) .. all traffic sould be to my iptables server...
nat client AND server request

MY PROB
"iptables -t nat -A PREROUTING -d 200.200.200.200 -j DNAT --to 192.168.0.10"
don't work on my iptables server

PERFECT SOLUTION
re-compÓle kernel with: CONFIG_IP_NF_NAT_LOCAL=Y
and do : "iptables -A OUTPUT -t nat -p tcp -d 200.200.200.200 -j DNAT --to 192.168.0.10"

MY WORKAROUND
so I just added virtual address
ifconfig eth0:asdasd 200.200.200.200 netmask 255.255.255.255
..but don't work if you need to redirect to other computer in LAN.. you will need tu use the "perfect solution"

hehe
hope this can help someone
comments ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Some sort of redirect with iptables? zooper Linux - Networking 2 09-22-2005 02:11 AM
iptables redirect _ben_deb_ Linux - Networking 7 11-13-2004 05:06 AM
Iptables redirect and pop3vscan soltrain Linux - Networking 1 08-04-2003 08:09 AM
iptables redirect slack Linux - Networking 0 06-17-2002 04:04 AM
iptables redirect bhartnett Linux - Networking 1 09-26-2001 09:11 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration