Find the answer to your Linux question:
Results 1 to 7 of 7
i have machine threee machines with tomcate routerwhen Machine -1 Client access to 1.1.1.100:8080 it farwards request to another ip 1.1.1.101:8081 Machine -2 i want ipatbles rule on 1.1.1.101. Machine ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    13

    iptables trafic redirection


    i have machine threee machines with tomcate routerwhen Machine -1
    Client access to 1.1.1.100:8080 it farwards request to another ip 1.1.1.101:8081

    Machine -2
    i want ipatbles rule on 1.1.1.101.

    Machine -3
    farward all 8081 traffic to 1.1.1.102:443.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    I am not sure I understand 100% what you are looking for. Could you try to explain it another way?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Posts
    13
    Thanks for Help
    Its reverseProxy Setup.

    Server-1 10.1.1.1:443 (Apache Server)
    Server-2 10.1.1.2:8080 (Tomcat Server and LoadBalancer)
    Server-3 10.1.1.2:4433 (Tomcate)


    Client Access to Server-1 and it redirect to Server-2
    Server-2 forward its request to Server-3:4433.

    How to Farward all trafic from Server-3:4433 to Server-1:443.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Quote Originally Posted by asimo View Post
    Thanks for Help
    Its reverseProxy Setup.

    Server-1 10.1.1.1:443 (Apache Server)
    Server-2 10.1.1.2:8080 (Tomcat Server and LoadBalancer)
    Server-3 10.1.1.2:4433 (Tomcate)


    Client Access to Server-1 and it redirect to Server-2
    Server-2 forward its request to Server-3:4433.

    How to Farward all trafic from Server-3:4433 to Server-1:443.
    Are server-2 and server-3 the same box?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just Joined!
    Join Date
    Apr 2005
    Posts
    13
    no its separate machine

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Simple DNAT should do the trick

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Just Joined!
    Join Date
    Apr 2005
    Posts
    13
    Thanks Robert
    Let me learn because i am not much aware with iptables

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •