LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How can i redirect to other IP without "iptables -t NAT" ? (https://www.linuxquestions.org/questions/linux-security-4/how-can-i-redirect-to-other-ip-without-iptables-t-nat-4175610844/)

postcd 07-29-2017 06:47 AM

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

TB0ne 07-29-2017 07:54 AM

Quote:

Originally Posted by postcd (Post 5741381)
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.

This thread from last year is a good example.
http://www.linuxquestions.org/questi...ed-4175572662/

Again, we are happy to try to help, but you have to provide details and show effort of your own.

postcd 07-30-2017 04:33 AM

Please anyone else?

Habitual 07-30-2017 05:30 AM

Love to. No details tho.
https://opensource.com/life/16/10/ho...ical-questions
Start with define "incoming connection". Singlar, so it must be one service out of 100s.

Tell us about the host's service daemon you wish to "redirect".

TB0ne 07-30-2017 07:56 AM

Quote:

Originally Posted by Habitual (Post 5741670)
Love to. No details tho.
https://opensource.com/life/16/10/ho...ical-questions
Start with define "incoming connection". Singlar, so it must be one service out of 100s.

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.

sundialsvcs 07-30-2017 08:53 AM

Could be a troll-bot.

TB0ne 07-30-2017 08:59 AM

Quote:

Originally Posted by sundialsvcs (Post 5741716)
Could be a troll-bot.

Doubtful; check the OP's posting history.

Habitual 07-30-2017 04:42 PM

Quote:

Originally Posted by TB0ne (Post 5741704)
Good luck, Habitual....you won't get any details or info

I had an idea before I posted. ;)

So, we have 2 elements.
"Other IP" and "incoming connection"...
Hard Line from The Batcave?

Can I buy a vowel? ;)

postcd 07-31-2017 01:36 AM

Good day, anyone else can help please?
if i need to post some command output, let me know.

descendant_command 07-31-2017 03:38 AM

Yes. Post some command output.

TB0ne 07-31-2017 06:53 AM

Quote:

Originally Posted by postcd (Post 5741986)
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'.

unSpawn 07-31-2017 11:09 AM

Quote:

Originally Posted by postcd (Post 5741986)
if i need to post some command output, let me know.

No, you shouldn't ask but just post whatever you have right away when you ask a question.
More efficient that way, OK?

jefro 07-31-2017 03:33 PM

There are a number of posts on this thread that are not directly related to the OP's question.

TB0ne 07-31-2017 04:04 PM

Quote:

Originally Posted by jefro (Post 5742294)
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.

postcd 08-01-2017 02:27 PM

Quote:

Originally Posted by unSpawn (Post 5742172)
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.


All times are GMT -5. The time now is 06:17 PM.