Re: relayd.conf error

2016-10-16 Thread Ali H. Fardan

On 2016-10-16 01:47, trondd wrote:

This has an error:
listen 127.0.0.1 port 7000
This does not:
listen on 127.0.0.1 port 7003

This has an error:
forward with tls to  6697
The rest of your forward to lines do not.


Tim.


Sorry for late response, this mail server went down for a while, anyway,
thanks Tim!



Re: relayd.conf error

2016-10-15 Thread trondd
On Sat, October 15, 2016 10:47 am, Ali H. Fardan wrote:
> Hey misc@, I'm having issues with relayd.conf. this is the error I get
> when I try to run relayd:
>
>
> # rcctl -df start relayd
> doing _rc_parse_conf
> doing _rc_quirks
> relayd_flags empty, using default ><
> doing _rc_parse_conf /var/run/rc.d/relayd
> doing _rc_quirks
> doing rc_check
> relayd
> doing rc_pre
> host_dns: chat.freenode.net resolves to more than 1 hosts
> host_dns: irc.oftc.net resolves to more than 1 hosts
> /etc/relayd.conf:11: syntax error
> /etc/relayd.conf:12: protocol irctls defined twice
> /etc/relayd.conf:17: syntax error
> /etc/relayd.conf:18: protocol irctls defined twice
> /etc/relayd.conf:23: syntax error
> /etc/relayd.conf:24: protocol irctls defined twice
> /etc/relayd.conf:31: syntax error
> no actions, nothing to do
> doing _rc_rm_runfile
> (failed)
> #
>
>
> using this config:
>
>
> # cat /etc/relayd.conf
> protocol "irctls" {
>  tcp { nodelay, sack }
> }
>
> table { chat.freenode.net }
> table { irc.oftc.net }
> table{ irc.swepipe.se }
> table { irc.krustykrab.restaurant }
>
> relay "freenode" {
>  listen 127.0.0.1 port 7000
>  protocol "irctls"
>  forward with tls to  port 6697
> }
>
> relay "oftc" {
>  listen 127.0.0.1 port 7001
>  protocol "irctls"
>  forward with tls to  port 6697
> }
>
> relay "efnet" {
>  listen 127.0.0.1 port 7002
>  protocol "irctls"
>  forward with tls to  port 6697
> }
>
> relay "volatile" {
>  listen on 127.0.0.1 port 7003
>  protocol "irctls"
>  forward with tls to  6697
> }
> #
>
>
> by the way, this config used to work the last time I tried it on my
> last server, not this though, have relayd.conf syntax change in last
> update?
>

Re-check your config like the errors say.  You're not consistantly using
the correct syntax.

This has an error:
listen 127.0.0.1 port 7000
This does not:
listen on 127.0.0.1 port 7003

This has an error:
forward with tls to  6697
The rest of your forward to lines do not.


Tim.



relayd.conf error

2016-10-15 Thread Ali H. Fardan

Hey misc@, I'm having issues with relayd.conf. this is the error I get
when I try to run relayd:


# rcctl -df start relayd
doing _rc_parse_conf
doing _rc_quirks
relayd_flags empty, using default ><
doing _rc_parse_conf /var/run/rc.d/relayd
doing _rc_quirks
doing rc_check
relayd
doing rc_pre
host_dns: chat.freenode.net resolves to more than 1 hosts
host_dns: irc.oftc.net resolves to more than 1 hosts
/etc/relayd.conf:11: syntax error
/etc/relayd.conf:12: protocol irctls defined twice
/etc/relayd.conf:17: syntax error
/etc/relayd.conf:18: protocol irctls defined twice
/etc/relayd.conf:23: syntax error
/etc/relayd.conf:24: protocol irctls defined twice
/etc/relayd.conf:31: syntax error
no actions, nothing to do
doing _rc_rm_runfile
(failed)
#


using this config:


# cat /etc/relayd.conf
protocol "irctls" {
tcp { nodelay, sack }
}

table { chat.freenode.net }
table { irc.oftc.net }
table{ irc.swepipe.se }
table { irc.krustykrab.restaurant }

relay "freenode" {
listen 127.0.0.1 port 7000
protocol "irctls"
forward with tls to  port 6697
}

relay "oftc" {
listen 127.0.0.1 port 7001
protocol "irctls"
forward with tls to  port 6697
}

relay "efnet" {
listen 127.0.0.1 port 7002
protocol "irctls"
forward with tls to  port 6697
}

relay "volatile" {
listen on 127.0.0.1 port 7003
protocol "irctls"
forward with tls to  6697
}
#


by the way, this config used to work the last time I tried it on my
last server, not this though, have relayd.conf syntax change in last
update?