Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7846647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:39:12+00:00 2026-06-02T17:39:12+00:00

anyone knows how can we make conection between with 2 computer if one computer

  • 0

anyone knows how can we make conection between with 2 computer if one computer in center of this 2 computer

in better case i want connect to linux pc together , but this 2 pc can not see each other
so there is a solution i have one other linux pc this can see another 2 pc ! so there is possible any iptables rule for forward packet with this pc

i want connect from pc 1 to pc 3 on port 5050
then pc1 can connect to pc2 and pc2 can connect to pc3 on port 5050 then in replay step
pc3 must replay to pc2 the pc2 must forward received packet to pc1

for better understanding see :

1 --> 2 --> 3
1 <-- 2 <-- 3

all of pc OS is Centos 5.7

i think iptables can do it , but i could not find any reference or help in google for do that,
so any guys can help me ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T17:39:14+00:00Added an answer on June 2, 2026 at 5:39 pm

    if you need one port:

    1 (addr 1.1.1.1)
    2 (addr 1.1.1.2,3.3.3.2)
    3 (addr 3.3.3.3)
    

    on 2:

    iptables -t nat -A PREROUTING -s 1.1.1.1 -p tcp --dport 5050 -j DNAT --to-destination 3.3.3.3
    iptables -t nat -A PREROUTING -s 3.3.3.3 -p tcp --dport 5050 -j DNAT --to-destination 1.1.1.1
    iptables -t nat -A POSTROUTING -d 3.3.3.3 -p tcp --dport 5050 -j SNAT --to 3.3.3.2
    iptables -t nat -A POSTROUTING -d 1.1.1.1 -p tcp --dport 5050 -j SNAT --to 1.1.1.2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i was wondering if anyone knows how i can calculate the difference between
Does anyone know how you can make a cocoa sheet with rounded corners like
Anyone knows how i can implement re-arrangable divs (Drag the divs around on the
Does anyone knows where I can find tutorials and code samples, basic and advanced,
Does anyone knows how i can get buyer's reviews from a Product in a
Have a rather simple question. Does anyone knows if i can use jparallax both
I'm clearly a newb, and I was wondering if anyone knows how I can
does anyone knows any good resources and articles that can explain how to create
I know I can get answers here but I was wondering if anyone knows
Does anyone know how can I cut a string and then assign into an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.