Git Product home page Git Product logo

Comments (40)

Doky1988 avatar Doky1988 commented on June 12, 2024 2

IPV6 disable!!!

Copy:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Edit: nano /etc/sysctl.conf

Paste and save!
and shutdown -r now


ZNC configuration no write bindhost!

And work reverse domain irc.

from znc.

psychon avatar psychon commented on June 12, 2024

ZNC first resolves your bind host. If that results in an IPv6 address, it will use IPv6. If it gets an IPv4 address, it will use IPv4 for the connection to the target.
So this results in ZNC trying to connect to a IPv4 address with an IPv6 bindhost which isn't going to work.

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

It would make sense to fix csocket.
It should support bindhosts with both ipv4 and ipv6 ips, and in case of ipvX-only remote host choose appropriate family.

from znc.

Epaphus avatar Epaphus commented on June 12, 2024

psychon, I did gather that, my point is more that it should see that the bindhost has 2 IP address, one is IPv6 and the is IPv4 and it should use the in the same address family as the server is connecting to.
When I first came across this I spent ages looking at it, since the error message is "Invalid argument" I thought I had entered in something wrong or something was odd was going on with server.

This problem is going show up more are more as the IPv4 address space runs out and people go for dual stacked IPv6 and IPv4 systems and put the both IPv6 and IPv4 address to one domain name or bindhost in the case of ZNC.

This should be fixed and done properly instead of just closing the issue.

from znc.

dxtr avatar dxtr commented on June 12, 2024

Is anyone working on this? I could perhaps do it.

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

dxtr, welcome! ;)

from znc.

dxtr avatar dxtr commented on June 12, 2024

Hehe. Thanks.
I looked over CSocket earlier and I noticed that some things could be improved. So do you have someone working on this or should I go ahead? I've got too much time on my hands :D

from znc.

psychon avatar psychon commented on June 12, 2024

Feel free to work on it. Imaginos (can be found on IRC, timezone is sth like GMT-9) is the Csocket author / maintainer, we just pull his version of Csocket.cc and Csocket.h

from znc.

psychon avatar psychon commented on June 12, 2024

#47 is a duplicate of this. (Colloquy module wants to send a push to colloquy.mobi (only has an A record), but bindhost is a v6 address)

from znc.

kylef avatar kylef commented on June 12, 2024

This should be fixed since 717d059. If you still have this issue please re-open.

from znc.

antivirtel avatar antivirtel commented on June 12, 2024

This bug is still exists for me with version:

<*status> ZNC 1.4 - http://znc.in
<*status> IPv6: yes, SSL: yes, DNS: threads

I wanted to connect to irc.nerv.fi +6697 - but with BindHost to my host it was wrote:
<*status> Cannot connect to IRC (Invalid argument). Retrying...
Removing the BindHost entry will immediately allow me to log in.

How can I get the full error message without debug mode? The "Invalid argument" is nothing... - this message should be fixed too!

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

So what was your bindhost? "localhost"?
irc.nerv.fi resolves to both v4 and v6.

2014-10-18 16:46 GMT+01:00 B. Roland [email protected]:

This bug is still exists for me with version:

<_status> ZNC 1.4 - http://znc.in
<_status> IPv6: yes, SSL: yes, DNS: threads

I wanted to connect to irc.nerv.fi +6697 - but with BindHost to my host
it was wrote:
<*status> Cannot connect to IRC (Invalid argument). Retrying...
Removing the BindHost entry will immediately allow me to log in.

How can I get the full error message without debug mode? The "Invalid
argument" is nothing... - this message should be fixed too!


Reply to this email directly or view it on GitHub
#37 (comment).

from znc.

antivirtel avatar antivirtel commented on June 12, 2024

my host was it: "server1.ennet.sk" - now it is using my IP (no BindHost).

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

On your machine (where ZNC runs) it resolves to 94.229.34.11?

2014-10-18 17:30 GMT+01:00 B. Roland [email protected]:

my host was it: "server1.ennet.sk" - now it is using my IP.


Reply to this email directly or view it on GitHub
#37 (comment).

from znc.

antivirtel avatar antivirtel commented on June 12, 2024

Yep:

$ dig server1.ennet.sk

; <<>> DiG 9.7.3 <<>> server1.ennet.sk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47680
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;server1.ennet.sk.              IN      A

;; ANSWER SECTION:
server1.ennet.sk.       43200   IN      A       94.229.34.11

;; AUTHORITY SECTION:
ennet.sk.               43200   IN      NS      ns2.ennet.sk.
ennet.sk.               43200   IN      NS      ns1.ennet.sk.

;; Query time: 4 msec
;; SERVER: 94.229.32.36#53(94.229.32.36)
;; WHEN: Sat Oct 18 18:33:21 2014
;; MSG SIZE  rcvd: 86

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

May you run znc -D and paste relevant lines from it (with the bindhost set)?

2014-10-18 17:35 GMT+01:00 B. Roland [email protected]:

Yep:

$ dig server1.ennet.sk

; <<>> DiG 9.7.3 <<>> server1.ennet.sk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47680
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;server1.ennet.sk. IN A

;; ANSWER SECTION:server1.ennet.sk. 43200 IN A 94.229.34.11

;; AUTHORITY SECTION:ennet.sk. 43200 IN NS ns2.ennet.sk.ennet.sk. 43200 IN NS ns1.ennet.sk.

;; Query time: 4 msec
;; SERVER: 94.229.32.36#53(94.229.32.36)
;; WHEN: Sat Oct 18 18:33:21 2014
;; MSG SIZE rcvd: 86


Reply to this email directly or view it on GitHub
#37 (comment).

from znc.

antivirtel avatar antivirtel commented on June 12, 2024

I've found these line, while the global BindHost was "server1.ennet.sk"

[2014-10-18 19:14:55.856971] TDNS: IRC::antivirtel::NervFi, connecting to [83.145.200.33] using bindhost [127.0.1.1]
[2014-10-18 19:14:55.857051] src/Csocket.cpp:1137 Connect Failed. ERRNO [22] FD [5]
[2014-10-18 19:14:55.857083] IRC::antivirtel::NervFi == SockError(22 Invalid argument)

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

2014-10-18 18:17 GMT+01:00 B. Roland [email protected]:

using bindhost [127.0.1.1]

Fix your /etc/resolv.conf, you can't connect to external server using
localhost as bindhost.

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

I am having save problem

Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...

How I fix this ?

from znc.

Mikaela avatar Mikaela commented on June 12, 2024

@fahadmehar try clearing your bindhost, /msg *status setuserbindhost or /msg *status setbindhost. If that doesn't help, give more details such as /msg *status version and output from znc -D showing the error.

Related: #241 as thanks to it people set 0.0.0.0 as bindhost.

from znc.

DarthGandalf avatar DarthGandalf commented on June 12, 2024

It's /msg *status clearbindhost. 0.0.0.0 shouldn't be needed anymore.

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

This is my Ver
<*status> ZNC 1.6.4 - http://znc.in
<*status> IPv6: yes, SSL: yes, DNS: threads, charset: no

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

Please I really want to set VHost,

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

How I fix this '?

<*status> Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

I clear my binhost so many times even with soap its not working...

from znc.

psychon avatar psychon commented on June 12, 2024

What server are you trying to connect to? Try something that also has an IPv4 address (dunno, some freenode server?)

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

ON DALnet Server @psychon

from znc.

psychon avatar psychon commented on June 12, 2024

Try 194.68.45.50 or 91.217.189.35 or 154.35.175.101 or 194.14.236.50 as server (random dalnet servers; however, I cannot find one with an IPv6-address; what server did you give ZNC to connect to?)

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

My IP address is IPv6 and They said my bIndhost is IPv6 only? I don't understand this?

from znc.

psychon avatar psychon commented on June 12, 2024

Pardon me, but my psychic abilities are having a bad day: Who is "they" and what exactly do "they" say? Any more specific error message from ZNC?
Why do you even still have a bindhost after /msg *status clearbindhost? That should unset any bindhost.

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

Man, I want to use my VHOST which I set from www.freedns.afraid.org. On IPv6 Address. But when I set the BindHost I get this message

from znc.

psychon avatar psychon commented on June 12, 2024

Uhm. That sounds more like ZNC's message is mixed up (is it?) and you are having an IPv6-bindhost, but DALnet does not have any IPv6 servers.
In that case, try /znc addserver ipv6.dal.net (or /znc addserver 2001:550:101:a::2 and /znc addserver 2a00:1a28:1100:4::a)

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

DALnet allow Ipv6 and on my ZNC panal i have put ipv6.dal.net server...

[Edit] [Del] DALnet 1 ipv6.dal.net:+6697 Fahad

Now what ? shall i add this also /znc addserver 2001:550:101:a::2

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

And After setting my Vhost on afraid and i cant able to add Ipv6 Ip on my panal. It says Invalid Hostname.

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

and it says my bindhost is ipv4 only

Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...

from znc.

psychon avatar psychon commented on June 12, 2024

and it says my bindhost is ipv4 only

Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...

But didn't you say that your bindhost is an IPv6 address?
Here:

Man, I want to use my VHOST which I set from www.freedns.afraid.org. On IPv6 Address. But when I set the BindHost I get this message

I'm confused by your setup. And the use of "VHOST" confuses me further.
Can you tell me what you set up with freedns? (Which IP, which DNS name)

I think that you cannot use this to get a vhost...

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

@psychon OK I can explain... I purchase VPS ok and I setup my ZNC and after setting up my ZNC i try to set Vhost for ZNC which i did from www.freedns.afraid.org. I put my IPV6 ip and set my VHost i try to put that vhost on znc. I get this message...

from znc.

psychon avatar psychon commented on June 12, 2024

The BindHost in ZNC just selects the IP address that ZNC connects from. If you only have a single IP address, the BindHost option doesn't have any effect.
Since you mention VHost: When the IRC server sees an incoming connection, it only sees your IP address. It then looks up the PTR record of that IP address to get a domain. Then it resolves that domain into an IP address. If the result matches the IP address of the incoming connection, the domain is used for display purposes instead of the IP address.
So, just setting up a new DNS record with freedns does not help, because you also need the PTR DNS record of the IP address (which you cannot control in most cases).

All of the above is why the option in znc is called BindHost and not VHost.

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

@psychon I think my VPS IP is Default IPV4 ? Maybe that's the issue?

from znc.

fahadmehar avatar fahadmehar commented on June 12, 2024

@psychon Thank You My Problem is solve

from znc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.