SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-117364

Nicolas GUILLAUME's questions

Martin Hope
Nicolas GUILLAUME
Asked: 2013-10-01 16:50:01 +0800 CST

How to specify the SSL port with command line curl?

  • 12

I'm trying to test the SSL connection on one of my servers. The server is behind a load balancer (LB) so it's listening for SSL connections on the port 8090.

I have use the --resolve option to test when talking to the LB which listens on port 443.

curl --resolve 'myservice.com:443:1.1.1.1' 'https://myservice.com'

but when I do:

curl --resolve 'myservice.com:8090:2.2.2.2' 'https://myservice.com:8090'

curl simply ignores the port and goes with 443. Of-course, this causes the DNS cache to miss and I end-up using the public DNS IP...

* Added myservice.com:8090:2.2.2.2 to DNS cache
* About to connect() to myservice.com port 443 (#0)
*   Trying 3.3.3.3...
* Connected to myservice.com (3.3.3.3) port 443 (#0)

How can I force curl to use the port 8090 for an SSL connection?

Thanks.

ssl
  • 2 Answers
  • 79997 Views
Martin Hope
Nicolas GUILLAUME
Asked: 2012-04-16 10:45:28 +0800 CST

VMware Port forwarding and NAT. How to have the host's IP as possible hostname in the VM?

  • 0

I'm trying to expose on my local network a very simple Ruby server running on Linux.

server = TCPServer.new(hostname, port)

My Linux VM runs on a NAT virtual network 192.168.73.X. The port I use is 1564 so I forwarded it using the "Virtual Network Editor" in VMware.

Then I use the 192.168.73.133 as the hostname in my ruby code.

This works great and if I try to connect to my server from the host machine (including with the IP of my host machine 192.168.1.118.

The problem is that I can't access it from an other computer on the network.

I'm guessing that the hostname needs to be changed but I have no idea what to put (except the IP of the host but ruby crashes when I do that). I also read that I needed to create a route in my linux but I can't figure out which one...

So I think that my question is: What route should I add to my linux in order to be able to put the IP address of the host in the host name?

Thank you for your help.

linux nat vmware-workstation
  • 2 Answers
  • 4346 Views
Martin Hope
Nicolas GUILLAUME
Asked: 2012-04-13 18:22:24 +0800 CST

Installing gitosis and closed port? [duplicate]

  • 4
This question already has answers here:
What causes the 'Connection Refused' message? (2 answers)
Closed 6 years ago.

I'm trying to install gitosis on a Server (hosted by OVH and running Ubuntu server 11.04). I've done it a few times and never had any problems.

But this time I have something very wired when I simply try to clone gitosis.

[root@ovks-1:~/]#git clone git://eagain.net/gitosis.git
Cloning into gitosis...
eagain.net[0: 208.78.102.120]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
zsh: exit 128   git clone git://eagain.net/gitosis.git

Based on my searches it looks like the port 9418 is closed.

But I don't understand, a server by definition shouldn't have any closed port and I can't find a way to see if they are.

So how can I check is a port is open and how can I open it if closed?

Thank you for your help.


Requested by WesleyDavid: iptables -L result

[root@odeoos-vks-1:~/]#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

I have no idea what it means... Thanks :)


Update:

I finally cloned gitosis from github using https://github.com/res0nat0r/gitosis.git and it worked.

My guess is that eagain.net has an actual connection problem and that there isn't much I could do about it...

port git connection-refused
  • 1 Answers
  • 4292 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve