I have tried for 3 days now to setup stunnel to have a agent go through port 22 from my agent to my server and cannot get it to work at all. I have searched the internet and this site and I cannot find an example of how to do this.
What I need is a how to, I just don't understand what I've found so far and I'm getting nowhere.
within stunnel.conf on my zabbix_agent I have
[zabbix_agent]
accept = 22
connect = localhost:10050
all others eg, pop3s, ssmtp, are commented out. No Certificate at this time.
On the server I have
[zabbix_agent]
accept = 22
connect = localhost:10050
all others eg, pop3s, ssmtp, are commented out. With certificates stunnel.pem and mail.pem
Try to start stunnel on either side gives me this:
Starting SSL tunnels: [Failed: /etc/stunnel/stunnel.conf]
You should check that you have specified the pid= in you configuration file
Just want to open a tunnel to my server to send it monitoring information.
My agent machine also has zabbix_proxy on it and an offsite child server will send information to it to be forwarded to my parent server. The offsite has to go through a firewall on port 2202. Again same issue, nothing doing.
So if someone could take me by the hand and walk me through I would be very grateful as I'm going bald tearing my hair out
Once again here is my ultimate dream to achieve, I know it can be done!
zabbix-parent-Node1 <- ssh:22 -> zabbix-agent
------^^--------------<- ssh:22 -> zabbix-proxy <- ssh:2202-> <-internet-> <-ssh:2202-> zabbix-child-Node2
zabbix-agent and zabbix-proxy on same machine. All servers Debian Linux X64, Zabbix is working fine on each end.
"I Only Need One Example of Stunnel, I Can Figure Out the Rest"
Lost In Space

What I need is a how to, I just don't understand what I've found so far and I'm getting nowhere.
within stunnel.conf on my zabbix_agent I have
[zabbix_agent]
accept = 22
connect = localhost:10050
all others eg, pop3s, ssmtp, are commented out. No Certificate at this time.
On the server I have
[zabbix_agent]
accept = 22
connect = localhost:10050
all others eg, pop3s, ssmtp, are commented out. With certificates stunnel.pem and mail.pem
Try to start stunnel on either side gives me this:
Starting SSL tunnels: [Failed: /etc/stunnel/stunnel.conf]
You should check that you have specified the pid= in you configuration file
Just want to open a tunnel to my server to send it monitoring information.
My agent machine also has zabbix_proxy on it and an offsite child server will send information to it to be forwarded to my parent server. The offsite has to go through a firewall on port 2202. Again same issue, nothing doing.
So if someone could take me by the hand and walk me through I would be very grateful as I'm going bald tearing my hair out

Once again here is my ultimate dream to achieve, I know it can be done!
zabbix-parent-Node1 <- ssh:22 -> zabbix-agent
------^^--------------<- ssh:22 -> zabbix-proxy <- ssh:2202-> <-internet-> <-ssh:2202-> zabbix-child-Node2
zabbix-agent and zabbix-proxy on same machine. All servers Debian Linux X64, Zabbix is working fine on each end.
"I Only Need One Example of Stunnel, I Can Figure Out the Rest"
Lost In Space