Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23127 > unrolled thread

POST to secure server

Started byRVic <rvince99@hotmail.com>
First post2013-03-26 04:46 -0700
Last post2013-04-03 15:34 +0100
Articles 9 on this page of 29 — 7 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  POST to secure server RVic <rvince99@hotmail.com> - 2013-03-26 04:46 -0700
    Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-26 13:43 +0000
    Re: POST to secure server markspace <markspace@nospam.nospam> - 2013-03-26 09:51 -0700
    Re: POST to secure server Roedy Green <see_website@mindprod.com.invalid> - 2013-03-26 19:00 -0700
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 05:34 -0700
      Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-27 13:07 +0000
      Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-27 20:11 -0300
        Re: POST to secure server markspace <markspace@nospam.nospam> - 2013-03-27 19:38 -0700
        Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 08:49 +0000
          Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-28 10:17 +0100
          Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-28 06:19 -0300
            Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 09:54 +0000
              Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-28 20:51 -0300
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 06:24 -0700
    Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-27 14:37 +0100
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 06:45 -0700
      Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-27 15:08 +0100
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 08:39 -0700
      Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-27 17:30 +0000
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 13:26 -0700
      Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-28 10:05 +0100
      Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 10:34 +0000
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-28 05:02 -0700
      Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 12:22 +0000
    Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-04-02 07:07 -0700
      Re: POST to secure server Silvio <silvio@internet.com> - 2013-04-02 22:39 +0200
      Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-03 10:39 +0100
        Re: POST to secure server Joerg Meier <joergmmeier@arcor.de> - 2013-04-03 15:32 +0200
          Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-03 15:34 +0100

Page 2 of 2 — ← Prev page 1 [2]


#23147

FromSilvio <silvio@internet.com>
Date2013-03-28 10:05 +0100
Message-ID<515407e1$0$6975$e4fe514c@news2.news.xs4all.nl>
In reply to#23143
On 03/27/2013 09:26 PM, RVic wrote:
> lipsa, Yes I do not know what silvio means -- not even sure why I would need to port forward it? Thank you.
>

Your replies arrive at strange places...

What Lipska posted is right on the money. In JSCH it is called port 
forwarding because they do not know what they would be forwarding but 
since in your case you would effectively be forwarding HTTP through the 
SSH connection it becomes tunnelling.

If you can access the servlet directly at 
http://moonprod:28080/servlets/myservlet (like you said in your other 
post that was also misplaced) then you would not need the SSH 
connection. However, if the servlet is not publicly accessible creating 
the tunnel is the only option.

Thank you Lipska for clarifying my post. This stuff is everyday routine 
for me so I may have rushed through the explanation.

Silvio

[toc] | [prev] | [next] | [standalone]


#23151

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-03-28 10:34 +0000
Message-ID<3oadnRxM9dkugcnMnZ2dnUVZ8k-dnZ2d@bt.com>
In reply to#23143
On 27/03/13 20:26, RVic wrote:
> lipsa, Yes I do not know what silvio means -- not even sure why I would need to port forward it? Thank you.

Think about it, what do you want to do.

You want to access a port that is not available to the outside world, 
that's you, you are the outside world.

There is a way, and it's by making a tunnel through the obstruction[s].

So you set up your tunnel by calling Jsch#connect,

once you have a connection you effectively have a tunnel from you to the 
server, now you say,

session.setPortForwardingL(8888, moonprod, <remote port>);

This says, anything I send to port 8888 on my local machine I want to 
forward to port <remote port> on the remote machine.

Now, if there is a servlet container on port remote:whatever and you 
POST to localhost:8080 the request will be forwarded *through the 
tunnel* to remote:whatever where your servlet is waiting. Bingo, you 
just hit your servlet by tunneling through the obstructions via the 
secure connection you set up via Jsch.

Give it a go and report back and let us know how you got on.

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#23152

FromRVic <rvince99@hotmail.com>
Date2013-03-28 05:02 -0700
Message-ID<77a20cce-741e-46c0-b01e-897eb90385cb@googlegroups.com>
In reply to#23127
The client is a University, and they are not too responsive or cooperative, more just "We don't know what you are talking about make it work we won't help you."

So after two days of waiting for them to open it to me, I decided there must be an alternative way. 

Now, they have decided to migrate the server, so U have no way of testing it until they let me know the new one is up. So as soon as I can, I will test the port forwarding using Jsch here. I already know the servlet and clent work flawlessly (they use basic authentication and encrypt the post parameters -- there would be very little problem even if they exposed it to the outside world) as I have run them communicating together on my local -- so if there is a problem when I run it then it is because i have the tunnel set up incorrectly.

Thank you guys for your elp -- I will report back here hopedfully within the next 24 hours. RVic

[toc] | [prev] | [next] | [standalone]


#23153

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-03-28 12:22 +0000
Message-ID<V5ednbugKPSOq8nMnZ2dnUVZ7oidnZ2d@bt.com>
In reply to#23152
On 28/03/13 12:02, RVic wrote:
> The client is a University, and they are not too responsive or cooperative, more just "We don't know what you are talking about make it work we won't help you."
>
> So after two days of waiting for them to open it to me, I decided there must be an alternative way.

Good for you, never let the buggers get you down.

> Thank you guys for your elp -- I will report back here hopedfully within the next 24 hours. RVic

You are more than welcome

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#23183

FromRVic <rvince99@hotmail.com>
Date2013-04-02 07:07 -0700
Message-ID<7ce34492-1dcb-493a-bddd-96fa889e454f@googlegroups.com>
In reply to#23127
Gentlemen,

It works, I'm able to hit the server now (though my servlet returns a 500 error, and I need to look in the tomcat logs to figure out why that might be) at least I am able to connect. Thanks for all your help on this. RVic.

[toc] | [prev] | [next] | [standalone]


#23191

FromSilvio <silvio@internet.com>
Date2013-04-02 22:39 +0200
Message-ID<515b4200$0$6851$e4fe514c@news2.news.xs4all.nl>
In reply to#23183
On 04/02/2013 04:07 PM, RVic wrote:
> Gentlemen,
>
> It works, I'm able to hit the server now (though my servlet returns a 500 error, and I need to look in the tomcat logs to figure out why that might be) at least I am able to connect. Thanks for all your help on this. RVic.
>

Good for you. And glad to hear we could be of service.

Cheers.

[toc] | [prev] | [next] | [standalone]


#23214

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-04-03 10:39 +0100
Message-ID<-ZKdnfGCsrxtZcbMnZ2dnUVZ7v-dnZ2d@bt.com>
In reply to#23183
On 02/04/13 15:07, RVic wrote:
> Gentlemen,
>
> It works, I'm able to hit the server now (though my servlet returns a 500 error, and I need to look in the tomcat logs to figure out why that might be) at least I am able to connect. Thanks for all your help on this. RVic.
>

Never give up, never surrender

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#23219

FromJoerg Meier <joergmmeier@arcor.de>
Date2013-04-03 15:32 +0200
Message-ID<1gx0ofsn9chvu.17ka9ri0bdgr1.dlg@40tude.net>
In reply to#23214
On Wed, 03 Apr 2013 10:39:58 +0100, lipska the kat wrote:

> On 02/04/13 15:07, RVic wrote:
>> Gentlemen,

>> It works, I'm able to hit the server now (though my servlet returns a 500 error, and I need to look in the tomcat logs to figure out why that might be) at least I am able to connect. Thanks for all your help on this. RVic.
> Never give up, never surrender

By Grabthar's Hammer, you shall be avenged!

Liebe Gruesse,
		Joerg

-- 
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

[toc] | [prev] | [next] | [standalone]


#23220

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-04-03 15:34 +0100
Message-ID<1JmdnaYErLd5oMHMnZ2dnUVZ8oCdnZ2d@bt.com>
In reply to#23219
On 03/04/13 14:32, Joerg Meier wrote:
> On Wed, 03 Apr 2013 10:39:58 +0100, lipska the kat wrote:
>
>> On 02/04/13 15:07, RVic wrote:
>>> Gentlemen,
>
>>> It works, I'm able to hit the server now (though my servlet returns a 500 error, and I need to look in the tomcat logs to figure out why that might be) at least I am able to connect. Thanks for all your help on this. RVic.
>> Never give up, never surrender
>
> By Grabthar's Hammer, you shall be avenged!

"I know! You construct a weapon. Look around, can you form some sort of 
rudimentary lathe?"

Surely one of the best *bad* spoof movies ever made.

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.java.programmer


csiph-web