LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-24-2020, 11:07 AM   #16
modinirmit
LQ Newbie
 
Registered: Jul 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by modinirmit View Post
Hello and thank you for your kind inputs.

the intention of creating to the flow , is that I need to pass the http GET request to application server
I have tired to create a diagram of expected sequance of flow .
once interface 10.130.169.29 receives the GET request for http://192.168.9.10/index.html , it can fetch the page and send the response back to 10.130.169.30.

I have noticed that request is coming to my Interface 10.130.169.29 but since this interface do not know where or how to reach to 192.168.9.10 and from this point , it drops...
I tried to change the color of request and response in diagram
 
Old 07-24-2020, 11:17 AM   #17
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by modinirmit View Post
Hello and thank you for your kind inputs.

the intention of creating to the flow , is that I need to pass the http GET request to application server
I have tired to create a diagram of expected sequance of flow .
once interface 10.130.169.29 receives the GET request for http://192.168.9.10/index.html , it can fetch the page and send the response back to 10.130.169.30.

I have noticed that request is coming to my Interface 10.130.169.29 but since this interface do not know where or how to reach to 192.168.9.10 and from this point , it drops...
actually you dont need any config, jsut check on both servers for arp and ip via this commands: arp and ip neigh list

if you see ip and arp then it should ok
 
Old 07-24-2020, 11:20 AM   #18
modinirmit
LQ Newbie
 
Registered: Jul 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
A couple of ways to do this, depending on what you have to work with. If you have Apache on the first server, you could redirect through that, but probably the simplest way would be using IP tables:
Code:
Edit the "/etc/sysctl.conf" file, and find the line that reads:
# sysctl net.ipv4.ip_forward=1

...and remove the # and the sysctl. That will let it survive a reboot.

Using IPtables, route web traffic (port 80, can use other ports)
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.11.12.13:80

And enable masquerading:
iptables -t nat -A POSTROUTING -j MASQUERADE

Then run
iptables-save > /etc/sysconfig/iptables
...to save the config.
Modify commands as needed for different ports/addresses. Odd though that someone with no Linux networking experience is given the task of doing this...even more odd that it's NEEDED, since both servers are on the same subnet, so why can't you just hit the .29 server directly? And why curl?

And you mention that you're using RHEL...who has extensive knowledgebase articles on doing this, and RHEL support can help you since you're PAYING for RHEL...RIGHT??? Have you called them?
thank you for the comment much useful, yes I do not have the knowledge but I nominated me with intention on learning the hard way , I have not purchased RHEL support it is small project of me.
 
Old 07-24-2020, 11:49 AM   #19
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,749

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by modinirmit View Post
thank you for the comment much useful, yes I do not have the knowledge but I nominated me with intention on learning the hard way , I have not purchased RHEL support it is small project of me.
You should reconsider using RHEL without paying; CentOS is 99.x% identical but free...without valid RHEL support, you're not going to get patches/bugfixes/security updates, and installing software is impossible via repositories. There are developer options, but if you're using server-edition, I'd reconsider.

As asked before, your request itself is unclear...since both systems are on the same subnet for BOTH interfaces, why use a bridge at all? Just query the .29 server directly. Unless this is strictly for a learning exercise, in which case the iptables/masquerade would be what you're after. Because in the diagram you posted in post #15, you list the http command as going to the second interface...ON THE SAME SYSTEM. Apache redirects can be used to take that address and accomplish step 1 (going to .29), where the a simple route to the 192 interface can send it to the 192.168.99.11. Back to iptables to route it to 192.168.99.10....which will create a loop, since that redirects to .29 and so forth.

Doesn't seem to make much sense how it's diagrammed, and won't flow correctly without doing infinite redirects/loops. Passing through one system to another is pretty simple, but what are you actually trying to accomplish by doing this???
Quote:
Originally Posted by marliyev
actually you dont need any config, jsut check on both servers for arp and ip via this commands: arp and ip neigh list if you see ip and arp then it should ok
Running these commands does absolutely NOTHING to accomplish what the OP is after; again, you need to re-read the original question and look at the follow-up posted. Further, the arp command is deprecated on RHEL, and their own docs say to not use it. And running "ip neigh list" does pretty much the same thing. Listing an arp table has no effect on anything to do with routing or redirection.
 
Old 07-24-2020, 11:52 AM   #20
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
You should reconsider using RHEL without paying; CentOS is 99.x% identical but free...without valid RHEL support, you're not going to get patches/bugfixes/security updates, and installing software is impossible via repositories. There are developer options, but if you're using server-edition, I'd reconsider.

As asked before, your request itself is unclear...since both systems are on the same subnet for BOTH interfaces, why use a bridge at all? Just query the .29 server directly. Unless this is strictly for a learning exercise, in which case the iptables/masquerade would be what you're after. Because in the diagram you posted in post #15, you list the http command as going to the second interface...ON THE SAME SYSTEM. Apache redirects can be used to take that address and accomplish step 1 (going to .29), where the a simple route to the 192 interface can send it to the 192.168.99.11. Back to iptables to route it to 192.168.99.10....which will create a loop, since that redirects to .29 and so forth.

Doesn't seem to make much sense how it's diagrammed, and won't flow correctly without doing infinite redirects/loops. Passing through one system to another is pretty simple, but what are you actually trying to accomplish by doing this???

Running these commands does absolutely NOTHING to accomplish what the OP is after; again, you need to re-read the original question and look at the follow-up posted. Further, the arp command is deprecated on RHEL, and their own docs say to not use it. And running "ip neigh list" does pretty much the same thing. Listing an arp table has no effect on anything to do with routing or redirection.

haha))) you are really dumb! you need a doctor
 
Old 07-24-2020, 12:12 PM   #21
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,749

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by marliyev View Post
haha))) you are really dumb! you need a doctor
So point out what part is wrong, since you're saying you're smart and know the answer. Since you've read what's been posted and understand all of it, you should then know how to configure things as the OP wants.

Please, demonstrate.
 
Old 07-24-2020, 12:17 PM   #22
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
So point out what part is wrong, since you're saying you're smart and know the answer. Since you've read what's been posted and understand all of it, you should then know how to configure things as the OP wants.

Please, demonstrate.
ok LQ Guru i will show you master class. in this situation if arp fully functional there shouldn't be any issue but as he said he receive packet but do not return it means need to add static route or default route: route add -host x.x.x.x/x gw x.x.x.x or route add default gw x.x.x.x. thats it, after this traffic will flow as expected i can teach you networking if you wanna, in da level CCIE but for money
 
Old 07-24-2020, 12:22 PM   #23
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,749

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by marliyev View Post
ok LQ Guru i will show you master class. in this situation if arp fully functional there shouldn't be any issue but as he said he receive packet but do not return it means need to add static route or default route: route add -host x.x.x.x/x gw x.x.x.x or route add default gw x.x.x.x. thats it, after this traffic will flow as expected i can teach you networking if you wanna, in da level CCIE but for money
"Master class" is a route command? Funny...you initially said you didn't NEED to do anything to have it work. Again, did you *ACTUALLY READ AND UNDERSTAND* what the OP is asking??

HTTP to 192.168.99.10, which they want redirected to 10.130.69.29....then sent to 192.168.99.11, and on to 10.130.69.30.

Now explain in your 'master class' how a single route statement on one box does that. And that they only want web traffic to go, not EVERYTHING. Again, you are in way over your head. And before you offer to teach anyone, you need to learn first...start with spelling and basics. Odd that someone with a 'master class' and certificates still has an open question here about how to configure Shorewall that you can't answer, and keep begging people to do. Doesn't seem like your 'master class' covers how Shorewall works or what it is.

Last edited by TB0ne; 07-24-2020 at 12:24 PM.
 
Old 07-24-2020, 12:28 PM   #24
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
"Master class" is a route command? Funny...you initially said you didn't NEED to do anything to have it work. Again, did you *ACTUALLY READ AND UNDERSTAND* what the OP is asking??

HTTP to 192.168.99.10, which they want redirected to 10.130.69.29....then sent to 192.168.99.11, and on to 10.130.69.30.

Now explain in your 'master class' how a single route statement on one box does that. And that they only want web traffic to go, not EVERYTHING. Again, you are in way over your head. And before you offer to teach anyone, you need to learn first...start with spelling and basics. Odd that someone with a 'master class' and certificates still has an open question here about how to configure Shorewall that you can't answer, and keep begging people to do. Doesn't seem like your 'master class' covers how Shorewall works or what it is.
ok, lets wait for a user and see what he will say. and now if you really LQ Guru go and answer my question about Shorewall, if you can resolve that issue i will admit that you are really Guru!!!
 
Old 07-24-2020, 12:32 PM   #25
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,749

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by marliyev View Post
ok, lets wait for a user and see what he will say. and now if you really LQ Guru go and answer my question about Shorewall, if you can resolve that issue i will admit that you are really Guru!!!
Can I? Sure...not going to, and if you have 'certificates' and teach 'master classes', you don't NEED anyone to answer it. Especially since you answered it yourself in that same thread. If you don't know enough to spot the answer, that says how much knowledge and experience you actually have.

And why don't YOU answer the question here, as asked:
HTTP to 192.168.99.10, which they want redirected to 10.130.69.29....then sent to 192.168.99.11, and on to 10.130.69.30.

Now explain how your single route statement on one box does that. You claim to teach master classes, so it should be easy for you to display your knowledge. Go ahead; answer a question for once with something that makes actual sense.
 
Old 07-24-2020, 12:37 PM   #26
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Can I? Sure...not going to, and if you have 'certificates' and teach 'master classes', you don't NEED anyone to answer it. Especially since you answered it yourself in that same thread. If you don't know enough to spot the answer, that says how much knowledge and experience you actually have.

And why don't YOU answer the question here, as asked:
HTTP to 192.168.99.10, which they want redirected to 10.130.69.29....then sent to 192.168.99.11, and on to 10.130.69.30.

Now explain how your single route statement on one box does that. You claim to teach master classes, so it should be easy for you to display your knowledge. Go ahead; answer a question for once with something that makes actual sense.
its simple routing, you can google, ah i forgot, google already open on your browser. Again, if you will resolve my issue about shorewall, i promise, i will admit that you are Guru and I WILL DELETE MY ACCOUNT and never will return to this site
 
Old 07-24-2020, 05:42 PM   #27
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,605

Rep: Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104Reputation: 4104
marliyev, responses such as post #8 are not acceptable here at LQ, if you'd like to continue participating here please refrain moving forward. Additionally to both marliyev and TB0ne - the personal back and forth responses and squabbling need to stop immediately, in this thread and in others.

--jeremy
 
  


Reply



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
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
OpenVPN Access Server Route All Traffic Through Local Squid Proxy? squidvpn Linux - Networking 1 05-18-2016 05:15 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration