Comments (8)
@chanmratekoko you ran it successfully, but error with iptables iptables: Bad rule (does a matching rule exist in that chain?).
check your iptables, when using sudo, your home was changed to root which did not have your key in /root/.ssh that all.
from sshuttle.
because user root does not have your user key in .ssh folder. preauth sudo with any command like: sudo ls then run as normal user, not sudo, it should work.
from sshuttle.
because user root does not have your user key in .ssh folder. preauth sudo with any command like: sudo ls then run as normal user, not sudo, it should work.
I don't understand. I am invoking the command as "myuser" and not as root.
sshuttle
-e 'ssh [email protected] -p 2224' -r [email protected]:2224 0.0.0.0/0 --dns
Am I misunderstanding you? Thanks for your time.
from sshuttle.
option -e only for choosing ssh or other command, not included options like myuser@host, remove it after you run sudo something, sshuttle need sudo permission to active iptables/nftables
from sshuttle.
option -e only for choosing ssh or other command, not included options like myuser@host, remove it after you run sudo something, sshuttle need sudo permission to active iptables/nftables
I guess I'm stupid for not understanding. How do I revise that code I gave? Tks
from sshuttle.
reproduce:
sudo ls
sshuttle -r [email protected]:2224 0.0.0.0/0 --dns
from sshuttle.
Hello! @NgoHuy
I have the same error after following your instruction.
reproduce: sudo ls sshuttle -r [email protected]:2224 0.0.0.0/0 --dns
sudo ls
sshuttle -r [[email protected]](mailto:[email protected]):2224 0.0.0.0/0 --dns
Error :
c : Connected to server.
# Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.7 (nf_tables): CHAIN_ADD failed (No such file or directory): chain OUTPUT
# Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables: Bad rule (does a matching rule exist in that chain?).
fw: fw: error: fw: ['iptables', '-t', 'nat', '-D', 'OUTPUT', '-j', 'sshuttle-12300'] returned 1
iptables: Bad rule (does a matching rule exist in that chain?).
fw: fw: error: fw: ['iptables', '-t', 'nat', '-D', 'PREROUTING', '-j', 'sshuttle-12300'] returned 1
fw: fatal: fw: ['iptables', '-t', 'nat', '-I', 'OUTPUT', '1', '-j', 'sshuttle-12300'] returned 4
c : fatal: cleanup: ['/usr/bin/sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', 'PYTHONPATH=/usr/lib/python3/dist-packages', '/usr/bin/python3', '/usr/bin/sshuttle', '--method', 'auto', '--firewall'] returned 99
Then, When I tried with 'sudo'.
sudo sshuttle -r [[email protected]](mailto:[email protected]):2224 0.0.0.0/0 --dns
Error :
Permission denied (publickey).
c : fatal: c : failed to establish ssh session (2)
Could you please help me?
from sshuttle.
NgoHuy
Thanks for your prompt response. @NgoHuy
I use it on Windows 11 WSL2 "Ubuntu 22.04.2 LTS". But above error occurs.
I was successfully used it on Window 10 WSL2 "Ubuntu 20.04 LTS".
I think, It could be related with iptables. and permissions.
from sshuttle.
Related Issues (20)
- Bypassing Internet Censorship HOT 1
- can't connect - "Whats wrong" HOT 4
- removing python requirement for systems with sshuttle preinstalled HOT 3
- SSHuttle Interferes with qemu networking on MacOS
- sw HOT 1
- Stopped working on MacOS Sonama HOT 7
- sshuttle seems to connect fine, but doesn't route traffic to the remote network HOT 1
- refused connections incorrectly get accepted HOT 5
- sshuttle woes with MacOS Sonoma HOT 8
- Sshutlle HOT 1
- failed to establish ssh session (2) HOT 1
- man page wrong, *buntu 22_04.3 HOT 5
- is there a way not to have sshuttle exit if one of the prefixes enter by domain name doesn't resolve ?
- Terminal broken with python3.12 HOT 19
- [Suggestion] Potential way to traffic UDP with udp-over-tcp
- [Feature Request] Forward to localhost
- use it to access services behind a gcloud IAP tunnel HOT 1
- Alternative connection backend (websockets)
- Sshuttle 1.1.1 not working on macOS Sonoma 14.1.1 HOT 7
- sshuttle fails when different sudo message appears.
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 sshuttle.