How can i redirect to other IP without "iptables -t NAT" ?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can i redirect to other IP without "iptables -t NAT" ?
Hello, i was curious which other method/s i can use to redirect incoming connection to different IP? Beside using "iptables -t NAT" kind of rule?
In my case it is Linux CentOS 6 (2.6.3 kernel)
I do not want to redirect all connections, only ones that was made to certain IP and all its ports, protocols. Thank you
Hello, i was curious which other method/s i can use to redirect incoming connection to different IP? Beside using "iptables -t NAT" kind of rule?
In my case it is Linux CentOS 6 (2.6.3 kernel) I do not want to redirect all connections, only ones that was made to certain IP and all its ports, protocols. Thank you
Lots of things can do this, but again since you provide no details about your environment (such as what kind of hardware you have in front of your server), or why you don't want an iptables rule, we can't help. You've been asking about iptables for the past two years now, and we've also asked you many, MANY times to provide details when asking questions.
Tell us about the host's service daemon you wish to "redirect".
Good luck, Habitual. If past history is any indication, you won't get any details or info, and I already asked the OP for details (as you saw), and only got "Please anyone else?" as a response...as if that, somehow, provided details. The OP has been asking about iptables for at least two years; and you would think that someone with four years experience with something would be able to at least work with that one command easily.
That said, if the OP doesn't want to use iptables, that leaves whatever is in front of that server to do the job. Such things can be done with a load-balancer (depending on type), and even some routers and switches. The Cisco higher-end ones can easily do this. But as you say...no details, so no way of knowing.
Good day, anyone else can help please? if i need to post some command output, let me know.
I'm sorry, but are you serious?? You've been asked twice now, very plainly, to give details about things, and you still haven't. And you come back and ask if we need "some command output"??? What command(s) are you going to run and why?? You still haven't told us anything to let us know IF you need to run any 'command'.
There are a number of posts on this thread that are not directly related to the OP's question.
While that may be true, we have all asked the OP to provide details; none have been provided, and the OP has a history of doing this. From post #2 they were asked for details and provided with suggestions (such as using switch/router/other hardware). The only replies thus far have been:
Please anyone else?
Good day, anyone else can help please? if i need to post some command output, let me know.
Not sure where to go here. Asking directly hasn't worked for anyone. The OP said they don't want to use iptables, but won't say why. They don't say what they want to redirect (protocol wise), what version/distro of Linux, what other tools may be available, what networking hardware may be available, etc., etc. Lots of things in play here, but we don't know any of them, and the OP won't say.
What is known is that the OP has been working with iptables for quite some time, and should be well familiar with it by now, so doing a redirect should be trivial. So it's odd they don't want to use iptables.
I understand what you're saying...but please view the OP's posting history first.
post whatever you have right away when you ask a question.
I post what i think might be useful. If there is anything else you need to know, please let me know command and i will try.
OFFTOPIC:
PS: I think this time wasting thread can be deleted to save time of future readers. If someone visit it wanting to discover answer to my question, he would waste good amount of time. All above posts could be replaced by single or two commands that i need to run. What a valuable topic it could be. Sorry for OT.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.