LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2016, 04:58 AM   #1
RuslanGR
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Rep: Reputation: Disabled
HAproxy lab, hoto Test?


Hello,
I'm trying to install HAproxy 1.5 for port forwarding like:

INTERNET -> 80.80.80.80:22(HAproxy)->75.2.1.1:22

My configs:
#-------------------------------------
global
log 127.0.0.1 local2 info
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 256
maxsslconn 256
user haproxy
group haproxy
daemon

defaults

mode tcp
log global
timeout connect 10s
timeout client 30s
timeout server 30s

# define frontend and backend servers

frontend test_server
bind *:22
default_backend backend_servers

backend backend_servers
server test1 75.2.1.1:22 check
#----------------------------------------------

After that I'm testing (from remote host):
nc 75.2.1.1 22
Answer(response):
> SSH-2.0-OpenSSH_5.3

But if I try:
nc 80.80.80.80 22
> --- EMPTY

Could you clarify how to check HAproxy forwarding?

Thank you.
 
Old 02-15-2016, 04:30 AM   #2
RuslanGR
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
[SOLVED]

easy on as server set nc -L port
and as client nc server port.

and sure you have to have right config for HAproxy.

BR.
Ruslan.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Gateway on a Multiple Router Test Lab RootMason Linux - Networking 3 11-18-2012 10:25 AM
RHCE Lab test hansi umayangan Linux - Enterprise 5 02-14-2011 06:49 AM
RedHat - Test Lab m1ck99 Linux - Newbie 4 08-26-2009 06:28 PM
LXer: Building an Asterisk@Home Test Lab LXer Syndicated Linux News 0 04-18-2006 04:33 AM
Real-life Operation Vs In-Lab test htm Linux - Networking 6 03-31-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration