Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
25th Mar, 2023, 06:55 AM
Post: #1
postcd Offline
Registered
Posts: 32
Joined: Nov 2021
Reputation: 0
How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
Hello,

on RPi4 + Xbian with 5.15.92+ after
Code:
sudo apt-get install tor obfs4proxy
and configuring /etc/tor/torrc (as shown below) I am wondering how to restart Tor to adopt my torrc file modifications:

Quote:root@xbian ~ # grep -v "#" /etc/default/tor|grep .
RUN_DAEMON="yes"
CLEANUP_OLD_COREFILES=y
if [ -e /etc/default/tor.vidalia ] && [ -x /usr/bin/vidalia ]; then
. /etc/default/tor.vidalia
fi

Quote:root@xbian ~ # grep -v "#" /etc/tor/torrc|grep .
ControlPort 9051
CookieAuthentication 1
HiddenServiceDir /var/lib/tor/Abc
HiddenServicePort 12345 127.0.0.1:12345
BridgeRelay 1
ORPort 10123
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:10124
ExtORPort auto
ContactInfo <me@altmails.com>
Nickname NickName

I had Tor already installed, it is used by one app (but tor process is not running per "ps") already had first 4 torrc config. file lines (shown above).

Quote:root@xbian ~ # /etc/init.d/tor restart
Stopping tor daemon...done (not running - there is no /run/tor/tor.pid).
Starting tor daemon...Mar 24 21:46:33.844 [warn] Socket creation failed: Address family not supported by protocol
Mar 24 21:46:33.845 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Mar 24 21:46:33.845 [err] Reading config failed--see warnings above.
failed.

I expect that RUN_DAEMON="yes" make sure Tor starts at boot. But how do i restart it without reboot and make it working without above error, please?
Visit this user's website Find all posts by this user
Quote this message in a reply
27th Mar, 2023, 08:52 PM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,359
Joined: Dec 2014
Reputation: 122
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
I'm sorry, I'm completely out of my depth here.
I have never dealt with tor more closely
Find all posts by this user
Quote this message in a reply
30th Mar, 2023, 06:08 PM (This post was last modified: 30th Mar, 2023 06:13 PM by f1vefour.)
Post: #3
f1vefour Offline
Administrator
******
Posts: 1,340
Joined: Mar 2013
Reputation: 58
How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
Try disabling IPv6 and starting, I'm not finding anything else related to this error but it doesn't specifically list IPv6.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
30th Mar, 2023, 06:34 PM
Post: #4
postcd Offline
Registered
Posts: 32
Joined: Nov 2021
Reputation: 0
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
(30th Mar, 2023 06:08 PM)f1vefour Wrote:  Try disabling IPv6
Xbian is using IPv6? Since i am unable to find it in "ifconfig" output and "ip -6 a" output is empty. Maybe my attempt to disable it in custom sysctl file worked or it was never active:
Code:
# echo -e "net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.eth0.disable_ipv6 = 1"|sudo tee -a /etc/sysctl.d/70-disable-ipv6.conf && sudo sysctl -p -f /etc/sysctl.d/70-disable-ipv6.conf

but anyway that not helped to make tor start (/etc/init.d/tor restart) - shows that failure from the bottom of my first/initial post..
Uncommenting these torrc lines cause it:
#BridgeRelay 1
#ORPort anyportnumberhere
Visit this user's website Find all posts by this user
Quote this message in a reply
30th Mar, 2023, 09:13 PM
Post: #5
Nachteule Offline
Administrator
******
Posts: 2,359
Joined: Dec 2014
Reputation: 122
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
BridgeRelay? This rings alarm bells for me after all
Should this really have something to do with a bridge, i.e. if the bridge modules are also used, then ipv6 is definitely required.
XBian disabled ipv6 by default. So that could be somehow related to it
Find all posts by this user
Quote this message in a reply
30th Mar, 2023, 09:54 PM
Post: #6
postcd Offline
Registered
Posts: 32
Joined: Nov 2021
Reputation: 0
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
(30th Mar, 2023 09:13 PM)Nachteule Wrote:  ipv6 is definitely required.
XBian disabled ipv6 by default.

Per your post http://forum.xbian.org/thread-4094-post-36676.html#pid36676 (topic "[PROBLEM] IPv6 disabled?") i have found that i need to comment out line in ipv6.conf file. This is how the file look like after change:

cat /etc/modprobe.d/ipv6.conf
Code:
# Don't load ipv6 by default
#alias net-pf-10 off

I have then tried various network restart commands that failed (in attempt to apply the change), but anyway found out "ifconfig" now shows inet6 and tor service started WITHOUT PROBLEM:

/etc/init.d/tor restart

SOLVED, thank youHeart. Consider if is still needed to have IPv6 disabled by default.Idea
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Apr, 2023, 09:46 PM
Post: #7
postcd Offline
Registered
Posts: 32
Joined: Nov 2021
Reputation: 0
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
(30th Mar, 2023 09:13 PM)Nachteule Wrote:  XBian disabled ipv6 by default.
I am wondering what else is disabled, since i am getting this:

Quote:Unable to find IPv4 address for ORPort 1xxxx You might want to specify IPv6Only to it or set an explicit address or set Address.
Your server has not managed to confirm reachability for its ORPort(s) at somepublicip:1xxxx. Relays do not publish descriptors until their ORPort and DirPort are reachable. Please check your firewalls, ports, address, /etc/hosts file, etc.

ping and nmap to somepublicip fails from multiple locations. I have forwarded port on router to my LAN computer (Xbian) static IP already. Router firewall is off, LAN computer (Xbian) firewall is empty and ACCEPT policy.

Does Xbian support OBFS4 transport protocol or anything regarding networking is needed to be changed?

Quote:netstat -tulnp|grep -i tor
tcp 0 0 0.0.0.0:1xxxx 0.0.0.0:* LISTEN 12064/tor
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 12064/tor
tcp 0 0 127.0.0.1:9051 0.0.0.0:* LISTEN 12064/tor
tcp6 0 0 :::1xxxx :::* LISTEN 12064/tor
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Apr, 2023, 10:56 PM
Post: #8
Nachteule Offline
Administrator
******
Posts: 2,359
Joined: Dec 2014
Reputation: 122
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
I can only repeat myself:
I have no idea at all, but maybe it is just a configuration problem. but that is just a guess
Otherwise I don't know what you could configure on system level

I think that you would expect much better help in tor forums.
Find all posts by this user
Quote this message in a reply
5th May, 2023, 01:20 PM
Post: #9
florencepugh Offline
Banned
Posts: 1
Joined: May 2023
RE: How to run Tor bridge on Xbian? Socket creation failed: Address family not supported
To do so, you can follow these steps: Install Tor =>Configure Tor as a bridge =>Install obfs4proxy =>start Tor =>Register and test your bridge. contexto
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th Sep, 2023, 06:40 AM Powered By MyBB, © 2002-2023 MyBB Group.