Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working : Line 550: /tmp/tordz95rL: No permission #96

Open
TravelTrader opened this issue Sep 28, 2023 · 1 comment
Open

Not working : Line 550: /tmp/tordz95rL: No permission #96

TravelTrader opened this issue Sep 28, 2023 · 1 comment

Comments

@TravelTrader
Copy link

I installed the .deb on Ubuntu 22.04 and this is the command and output:

$ sudo orjail -v -f ifconfig wlp3s0
 * 10.200.160.2 <---> 10.200.160.1
 * Creating a orjail namespace...
 * Creating a veth link...
 * Sharing the veth interface...
 * Setting up IP address of host interface (<IP>/30)
 * Setting up IP address of peer interface (<IP>/30)
 * Default routing up...
 * Bringing orjail loopback up...
 * Resolving via Tor
 * Traffic via Tor...
 * Creating the Tor configuration file...
 * Tor version is 0.4.6.10. 2.1.12 3.0.2 1.2.11 5.2.5 1.4.8 2.35 11.2.0
/usr/sbin/orjail: Zeile 550: /tmp/tordz95rL: Keine Berechtigung
[Error] in command: cat >> "$TORCONFIGFILE" <<EOF
  DataDirectory /tmp/orjail-${NAME}
  AutomapHostsSuffixes .onion,.exit
  AutomapHostsOnResolve 1
  PidFile      /tmp/orjail-${NAME}/pid
  User         ${USERNAME}
  VirtualAddrNetworkIPv4 ${IPNETNS}/16
  TransPort ${IPHOST}:${TRANSPORT}
  DNSPort ${IPHOST}:${DNSPORT}
  SOCKSPort 0
  RunAsDaemon 1
EOF

 * Remove Tor temporary configuration
 * Killing Tor process 
 * Killed 
 * Remove Tor DataDirectory: /tmp/orjail-orjail
 * Remove in-orjail network interface
 * Delete network namespace orjail
 * Cleaning up iptables rules...

Is this a know error?
How can I get orjail running?

Thank you.

@Roberto-MN
Copy link

Roberto-MN commented Sep 29, 2023

Hi TravelTrader,
Orjail's Debian package is outdated. There are two ways to solve this. One option is to install the version of Github using the following commands:

sudo apt-get purge orjail
git clone https://github.com/orjail/orjail.git
cd orjail
sudo make install

Another option is to fix the broken /usr/sbin/orjail script. For this replace the line:
TORCONFIGFILE=$(mktemp /tmp/torXXXXXX)

By:
mkdir -p /var/run/orjail
TORCONFIGFILE=$(mktemp /var/run/orjail/torXXXXXXXXXXXXXXXX)

This should fix de bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants