Problem with Static route through peer to peer connection


 
Thread Tools Search this Thread
Special Forums IP Networking Problem with Static route through peer to peer connection
# 1  
Old 11-21-2012
RedHat Problem with Static route through peer to peer connection

Hi,

I am trying to add a static route in one of 3 server (S3) so that I can access the main application server (S1). But problem is, the server (S3) where I am trying to add static route is connected with another server (S2) which is in same private network of application server (S1).

I have 3 servers. servers' IP suppose:

S1:
eth0: 10.10.8.26
255.255.255.0
10.10.8.1

S2:
eth0: 10.10.8.48
255.255.255.0
10.10.8.1

eth1: 192.168.100.1
255.255.255.252

S3:
eth0: 192.168.100.2
255.255.255.252

Here 192.196.100.2 is P2P connected with 192.168.100.1

But I want to access 10.10.8.26 from 192.168.100.2

Your expert advice is highly appreciated. Thanks in advance. Have a nice day.

Regards,

Imran
# 2  
Old 11-21-2012
Well, you might need a static route at each end to keep the traffic off S2. Can you tell S2 not to forward?
This User Gave Thanks to DGPickett For This Post:
# 3  
Old 11-22-2012
So I have to add static route in S1 & S3 ? How can I tell S2 not to forward?Actually, I m new in unix environment. Would you please help me with command so that I can apply those in the terminal of S1 & S3.

FYI, from S3 I can only ping 192.168.100.1 not 10.10.8.48

Thanks for your reply & assistance.

Regards,

Imran

---------- Post updated at 06:05 PM ---------- Previous update was at 12:38 PM ----------

Can I use port forwarding to resolve this issue?

On S2 if I configure port forwarding like this 192.168.100.1:1443 -> 10.10.8.26:443, I will be able to access the application from S3 through https to 192.168.100.1:1443 ?
# 4  
Old 11-22-2012
I think you need a router to exchange packets between the 10... network and the 192... network. If S2 can act as a router from S3 to S1, fine. Make it the gateway for 10... on S3. If you have another router in your local area, use that.

There might be a remote chance depending on your system' s setup, that you could use an alias interface on S3 to interact with S1. On my linux system, I do it like
Code:
# ifconfig eth0:1 192.168.20.1
# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:1f:c6:4c:d0:e2  
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
. . . 

eth0:1    Link encap:Ethernet  HWaddr 00:1f:c6:4c:d0:e2  
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

I'd be very interested in your results!

Last edited by RudiC; 11-22-2012 at 09:05 AM.. Reason: corrected the ifconfig command
This User Gave Thanks to RudiC For This Post:
# 5  
Old 11-22-2012
Yes, I want to apply port/ IP forwarding in S2 so that can access S1 from S3. But can't figure it out how to do that. Problem is mine that I am so much novice in unix environment. Would you please help me with command that can be applied in S2 through terminal?
# 6  
Old 11-22-2012
Sorry, I can't answer your port forwarding questions sensibly. I'm not sure you need it at all if you set up routing correctly.
Still there were two other proposals in my post that you might want to give a shot.
# 7  
Old 11-22-2012
I think routing between S2 & S3 will be easy way rather than thinking port forwarding or static routing. I will try & let you know the result.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Can't SSH - Connection reset by Peer

Hi Guys, I can't SSH to a remote system - connection reset by peer..any ideas ? -The Source is Linux, the Remote is Windows -The remote has OpenSSH running on Port 22 - Telnet confirms port is open -User1 has a RSA2 Key (2048) key, which is capture in the 1010101-pub.key specified by the... (1 Reply)
Discussion started by: stevie_velvet
1 Replies

2. UNIX for Dummies Questions & Answers

cat: write error: Connection reset by peer

I have created a script to cat the contents of a log file and pipe it to head and tail so I can get specific lines. When I do this I sometimes randomly get the error "cat: write error: Connection reset by peer". It is completely sporatic and sometimes it doesnt happen and sometimes it does... (4 Replies)
Discussion started by: atelford
4 Replies

3. IP Networking

Firewall stopping Peer to Peer File sharing

I am looking for advice on a router. I am new to Linux and am trying to use Limewire and Ktorent and can make no connection. Limewire indicates I have a firewall. I have a Linksys router WRK54G and my guess is that is the problem. I have spent hours upon hours trying to get it to work using info... (0 Replies)
Discussion started by: Paul K
0 Replies

4. UNIX for Advanced & Expert Users

Connection reset by peer..closing connection

Hello I'm facing the above problem while doing a performance run. I've a script which I'm launching from my windows desktop using mozilla. The script will invoke backend action on a Solaris host which in turn feeds the records to a driver located on a linux box(Cent OS). What's happening is... (1 Reply)
Discussion started by: subramanyab
1 Replies

5. Solaris

peer-to-peer connection on solaris and windows

hi everyone. As a solaris/unix beginner, I am trying a peer-to-peer connection with my Sun and Windows. Here is my setup: -Windows XP -Sun System (Netra T1) which is connected to the console of the WinXP machine. -Windows XP has wireless connection which enables me to access internet ... (3 Replies)
Discussion started by: graboid888
3 Replies

6. IP Networking

connection reset by peer on freebsd

hi all. am running postgresql in a vm on debian server. i have some client programs connecting to the db. when i check the logs of postgresql i see "connection reset by peer" can someone help me with this issue... thanks. (1 Reply)
Discussion started by: coolatt
1 Replies

7. Shell Programming and Scripting

Connection reset by peer

hi i am connecting to a remote server using sftp protocol. i am using the command like "sftp USER01@122.10.12.45" then i got the error "Couldn't read packet: Connection reset by peer" please help its very urgent (5 Replies)
Discussion started by: Satyak
5 Replies

8. Shell Programming and Scripting

ssh - connection reset by peer

I use ssh to work on the server (OS X 10.4.x) remotely from home (Debian / OS X 10.5.3). If I leave my machine idle, I get disconnected after a couple of minutes. I get the following error message: Read from remote host "server name": Connection reset by peer Connection to "server name" closed.... (2 Replies)
Discussion started by: osxhawk
2 Replies

9. IP Networking

connection reset by peer

:confused: HI, We have 2 servers ( win 2003 + sun 5.8 ) and we run a rsh from the NT to the UNIX. The program runs a shell script on the UNIX and waits for the answer in the EOF. How ever, after period of appx 2 min there is a reply "Recv failed:Connection reset by peer". while the... (5 Replies)
Discussion started by: eyalush
5 Replies
Login or Register to Ask a Question