Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables line works ... but why?

Reply
Thread Tools Display Modes

iptables line works ... but why?

 
 
bill.omer@gmail.com
Guest
Posts: n/a

 
      02-28-2006, 09:30 PM
I"ve been working with lvs for the past few weeks. I was able to get
my remote servers to respond to requests sent to a different address
than is bounded to any of their interfaces by using the following
iptables line. I was able to put this together by working with some
old ipchains examples:

iptables -t nat -A PREROUTING -d cvg1-lvs-vip -p tcp --dport 0:65535
-j REDIRECT
echo 1 > /proc/sys/net/ipv4/ip_forward


Onoce I do the above, then the server this is being ran one will be
able to handle connections the LVS server is routing to it. So
incoming connections come from one box, but need to go directly to the
client from the real server. Once I do the above, it works.

But can someone explain to me why it works? I'm just not sure at all
.....

I guess I dont understand PREROUTING and what the REDIRECT option has
to do with anything .....


Any insight would be much apprecaited

Regards,
Bill Omer

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broadband works but not land line teza Broadband 15 09-15-2007 05:05 PM
ADSL only works when phone line used Tiny Tim Broadband 10 08-21-2006 06:56 PM
VPN with iptables/poptop works. can reach lan but not server Evert Linux Networking 0 02-18-2005 09:43 PM
One modem works on my line, others don't. Why? Dennis Reynolds Broadband 12 01-01-2005 03:08 PM
Iptables Forwarding Works But Now No NFS Access. Gazza Linux Networking 0 07-19-2004 09:17 PM



1 2 3 4 5 6 7 8 9 10 11