Comments (40)
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.
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.
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.
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.
Is anyone working on this? I could perhaps do it.
from znc.
dxtr, welcome! ;)
from znc.
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.
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.
#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.
This should be fixed since 717d059. If you still have this issue please re-open.
from znc.
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.
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: threadsI 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.
my host was it: "server1.ennet.sk" - now it is using my IP (no BindHost).
from znc.
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.
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.
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.
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.
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.
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.
@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.
It's /msg *status clearbindhost
. 0.0.0.0 shouldn't be needed anymore.
from znc.
This is my Ver
<*status> ZNC 1.6.4 - http://znc.in
<*status> IPv6: yes, SSL: yes, DNS: threads, charset: no
from znc.
Please I really want to set VHost,
from znc.
How I fix this '?
<*status> Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...
from znc.
I clear my binhost so many times even with soap its not working...
from znc.
What server are you trying to connect to? Try something that also has an IPv4 address (dunno, some freenode server?)
from znc.
ON DALnet Server @psychon
from znc.
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.
My IP address is IPv6 and They said my bIndhost is IPv6 only? I don't understand this?
from znc.
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.
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.
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.
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.
And After setting my Vhost on afraid and i cant able to add Ipv6 Ip on my panal. It says Invalid Hostname.
from znc.
and it says my bindhost is ipv4 only
Disconnected from IRC (Server address is IPv6-only, but bindhost is IPv4-only). Reconnecting...
from znc.
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.
@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.
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.
@psychon I think my VPS IP is Default IPV4 ? Maybe that's the issue?
from znc.
@psychon Thank You My Problem is solve
from znc.
Related Issues (20)
- Add OpenID Connect support HOT 3
- Add some way to bypass channel mode cache (or just remove it) HOT 6
- Feature request: ability to disable the "The channel could not be joined, disabling it" behavior HOT 1
- Client connecton stalled after CAP ACK HOT 3
- Portainer Add Template > ZNC - no login
- Add Security Headers to webadmin HOT 5
- Cannot load python modules via webadmin w/ Debian 12/Python 3.11.x/znc-1.9.x HOT 2
- can't remove some channels from chansaver HOT 5
- Reconnecting too fast HOT 6
- Missing `RPL_TOPICWHOTIME` from server results in incorrect `RPL_TOPICWHOTIME` sent to client
- Update the Copyright notice
- Perform /timer unknown command HOT 3
- Watch module ZNC HOT 7
- Missing : in PASS command
- Likely race condition in build system related to `generated.tar.gz` HOT 3
- identd and identfile doeset works HOT 10
- Cannot add/edit networks through Webui "The requested module does not acknowledge web requests" HOT 6
- Expired Certificate for wiki.znc.in HOT 4
- listsockets printing 1970's dates. HOT 4
- return znc.HALTCORE ignored in OnJoinMessage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from znc.