Results 11 to 20 of 23
Why do u say that I cannot use the REDIRECT or the DNAT targets in case of a router.
Please explain.....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-03-2007 #11Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Why do u say that I cannot use the REDIRECT or the DNAT targets in case of a router.
Please explain..
- 03-03-2007 #12I don't mean to say that you cannot do that. But as per ur requirement, you need to decrypt data on the router and then to forward it.Why do u say that I cannot use the REDIRECT or the DNAT targets in case of a router.
If you use DNAT rule, then you cannot do this processing.
If you strictly want to DNAT/REDIRECT traffic from client to the LAN server and also to do decryption, then you have to queue up the packet (before DNATiing/ REDIRECTing) from kernel space to user space, decrypt it, then put it back in the kernel space.
Kernel will take care of redireting the traffic to ur DB server (since your DNAT rule follows ur QUEUE rule -- iptables (basically a single linear linked list)).
But before getting much more deeply into this, knwo about your DB server. Decide which DB u r going to use. Because, DB, by itself provides all such DB traffic encryption.---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-03-2007 #13Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
"I want to REDIRECT all the traffic to the ROUTER machine itself"
How does this sound??
Originally Posted by cyberinstru
- 03-03-2007 #14Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
When I do this the traffic will not go to the LAN server but will come again to my router machine ... this time with a destination of my router!!
Originally Posted by bhupeshchawda
- 03-03-2007 #15Here REDIRECTion is not at all requiredI want to REDIRECT all the traffic to the ROUTER machine itself"
How does this sound??
. B'coz, ur router sits on the edge and obviously all the packets come to the router first.
---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-03-2007 #16Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
BUT I dont want to let the packets flow away to the LAN server.
Without the REDIRECT, all packets will come to my router, no doubt BUT they will also flow to the LAN server ... undecrypted! which I don't want.
I will decrypt them at the router and then forward them to the LAN!!
Originally Posted by cyberinstru
- 03-03-2007 #17No way. Without a PREROUTING rule, no new packets can reach your LAN machine.BUT they will also flow to the LAN server ... undecrypted!
Only packets in RELATED and ESTABLISHED state could reach your LAN machine and obiviously that is initiated from LAN to INTERNET (with a POSTROUTING rule on the router)---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-03-2007 #18Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
I didn't know this!
Thanx a lot and that solves my problem. But 1 thing I last thing I would like to know is:
"The packets sent by the client will have the destination address of any of the LAN machines. Will the packets sent from the client come to my router even if the router does not forward them to the LAN server automatically??"
Originally Posted by cyberinstru
- 03-03-2007 #19Does you LAN server hold a public IP? Your router does NAT, right?the LAN server
If I am right, in your setup, only ur router holds a public IP and all your LAN machines, including the server hold private IP. So without router doing NAT, no new packets could reach from the outside world to ur LAN.
Please correct me, if I my understanding on ur setup is wrong.---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-03-2007 #20Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
You have understood my problem very nicely, no doubt.
Originally Posted by cyberinstru
Here pops up a new problem...
When my router does not do NATing packets do not even reach my router.
And when I do NATing packets go away to the LAN server directly.
Now what to do??
By the way do u have an orkut account. It would be better talking up there.


Reply With Quote
