Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Location
    India
    Posts
    227

    Question Port Redirect.....

    Hello Friends,

    Please check my query and update me if it is possible or not...


    I have 2 application servers (i.e. A and B)

    A ip is :- 192.168.11.22 port :- 7013 (single lan card)

    B ip is :- 10.10.10.22 :- 8014 (single lan card)


    Now i want to set port fowarding/ redirection. When any client request to 192.168.11.22:7013 it will redirect to 10.10.10.22:8014 . How it is possible by iptables or any other way ?


    Thank you.
    =============
    Map007

    Linux Blog

  2. #2
    Join Date
    Apr 2008
    Location
    India
    Posts
    227
    Hi,

    I have tried with below link, but only local redirection is working and i want to redirect to remote machine.....

    http://www.cyberciti.biz/faq/linux-p...with-iptables/

    Thank you.
    =============
    Map007

    Linux Blog

  3. #3
    Join Date
    Apr 2009
    Posts
    254
    For example, turn your router into a bridging router based on this article:
    http://ebtables.sourceforge.net/br_f....html#section7
    then write iptables postrouting rules
    net.ipv4.conf.default.forwarding setting in router must be in 1
    █▌KVM-based SSD VPS
    ▌Unmetered Dedicated Servers
    ▌Colocation at 100 Delawanna Ave, Clifton, NJ

  4. #4
    Join Date
    Mar 2007
    Location
    East Lansing, Michigan
    Posts
    86
    Quote Originally Posted by map007 View Post
    When any client request to 192.168.11.22:7013
    it will redirect to 10.10.10.22:8014.
    You could always use something like rinetd.

    config file would just contain:

    Code:
    192.168.11.22 7013   10.10.10.22 8014
    Hope this helps.

  5. #5
    Join Date
    Apr 2008
    Location
    India
    Posts
    227
    Thank you to all for your valuable reply....

    HI Russell, Can you give me the rinetd documentation.... So i will check..

    Thank you.
    =============
    Map007

    Linux Blog

  6. #6
    Join Date
    Apr 2008
    Location
    India
    Posts
    227
    Hi,

    I have done it by following way :-

    http://www.linuxsurgeon.org/kb/ip-an...direction.html

    Thanks to all....
    =============
    Map007

    Linux Blog

Similar Threads

  1. IP:Port Redirect to another IP:Port?
    By SaintGTR in forum Dedicated Server
    Replies: 10
    Last Post: 04-24-2010, 02:21 AM
  2. Redirect .do requisitions to Tomcat port
    By latitude in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-02-2005, 06:01 PM
  3. Redirect webmail port?
    By sis3970 in forum Dedicated Server
    Replies: 7
    Last Post: 08-27-2004, 06:00 PM
  4. Redirect outgoing port for -1- host only
    By 2Grumpy in forum Hosting Security and Technology
    Replies: 3
    Last Post: 08-22-2004, 04:17 PM
  5. listen on 1 port, redirect to 2 internal ips
    By cher in forum Hosting Security and Technology
    Replies: 0
    Last Post: 02-25-2004, 10:19 PM

Posting Permissions

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