Forward All Traffic to Socks5 ProxyHow to forward IP traffic between wlan0 and eth0 without killing network...
Does a restocking fee still qualify as a business expense?
How do you determine the reach of a Monster's unarmed strikes?
What are the branches of statistics?
How does an alien race from a dying world annihilate most of humanity to colonize the planet for themselves?
Fermat's polygonal number theorem
Can we not simply connect a battery to a RAM to prevent data loss during power cuts?
Should I avoid "big words" when writing to a younger audience?
What does this text mean with capitalized letters?
Code Golf Measurer © 2019
How do I copy an installed steam game on my PC to an external hard drive?
Remove last letter 4 times, get a real word each time, starting word is a car model
How could a steampunk zeppelin navigate space?
Hero battle game
Not returning after leave
Unexpected exec permission from mmap when assembly files included in the project
Milk instead of water in bread
Is the tap water in France safe to drink?
What does "stirring tanks" mean?
Charges from Dollar General have never shown up on my debit card - how to resolve?
Advisor asked for my entire slide presentation so she could give the presentation at an international conference
Front hydraulic disk brake is too powerful on MTB — solutions?
Why is technology bad for children?
How safe is the 4% rule if the U.S. goes back to the mean?
how to say 'nerd' or 'geek' in french?
Forward All Traffic to Socks5 Proxy
How to forward IP traffic between wlan0 and eth0 without killing network performance on the forwarding machineDebian network disappearingIptables with libnetfilter NATing problemiptables - 2 Internetprovider - routingHow can I forward traffic across two Ethernet cards?Forward all traffic to a socks5 proxy port
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
I have a Raspberry Pi running Raspbian 10 with SSHUTTLE but it is rather slow at around 5 Mbps. With a standard SSH based socks5 proxy I've been able to get around 40-50 Mbps. I don't have much experience with iptables, so I will try to explain what I'm trying to do. I'm trying to use iptables to forward TCP traffic from eth0
to a SSH based socks proxy. I have a 192.168.220.1/24
subnet on eth0
interface. The internet connection to the Pi runs on the usb0
interface. The Pi is a connected as a client the 192.168.42.223/24
subnet via usb0
.
These are my current iptables rules:
iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
iptables -A FORWARD -i usb0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o usb0 -j ACCEPT
networking iptables
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
I have a Raspberry Pi running Raspbian 10 with SSHUTTLE but it is rather slow at around 5 Mbps. With a standard SSH based socks5 proxy I've been able to get around 40-50 Mbps. I don't have much experience with iptables, so I will try to explain what I'm trying to do. I'm trying to use iptables to forward TCP traffic from eth0
to a SSH based socks proxy. I have a 192.168.220.1/24
subnet on eth0
interface. The internet connection to the Pi runs on the usb0
interface. The Pi is a connected as a client the 192.168.42.223/24
subnet via usb0
.
These are my current iptables rules:
iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
iptables -A FORWARD -i usb0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o usb0 -j ACCEPT
networking iptables
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago
add a comment
|
I have a Raspberry Pi running Raspbian 10 with SSHUTTLE but it is rather slow at around 5 Mbps. With a standard SSH based socks5 proxy I've been able to get around 40-50 Mbps. I don't have much experience with iptables, so I will try to explain what I'm trying to do. I'm trying to use iptables to forward TCP traffic from eth0
to a SSH based socks proxy. I have a 192.168.220.1/24
subnet on eth0
interface. The internet connection to the Pi runs on the usb0
interface. The Pi is a connected as a client the 192.168.42.223/24
subnet via usb0
.
These are my current iptables rules:
iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
iptables -A FORWARD -i usb0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o usb0 -j ACCEPT
networking iptables
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a Raspberry Pi running Raspbian 10 with SSHUTTLE but it is rather slow at around 5 Mbps. With a standard SSH based socks5 proxy I've been able to get around 40-50 Mbps. I don't have much experience with iptables, so I will try to explain what I'm trying to do. I'm trying to use iptables to forward TCP traffic from eth0
to a SSH based socks proxy. I have a 192.168.220.1/24
subnet on eth0
interface. The internet connection to the Pi runs on the usb0
interface. The Pi is a connected as a client the 192.168.42.223/24
subnet via usb0
.
These are my current iptables rules:
iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
iptables -A FORWARD -i usb0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o usb0 -j ACCEPT
networking iptables
networking iptables
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 52 mins ago
kkx07805
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 59 mins ago
kkx07805kkx07805
62 bronze badges
62 bronze badges
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
kkx07805 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago
add a comment
|
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
kkx07805 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545821%2fforward-all-traffic-to-socks5-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
kkx07805 is a new contributor. Be nice, and check out our Code of Conduct.
kkx07805 is a new contributor. Be nice, and check out our Code of Conduct.
kkx07805 is a new contributor. Be nice, and check out our Code of Conduct.
kkx07805 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545821%2fforward-all-traffic-to-socks5-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
socks5 proxy will require client configuration, you'll have to set the HTTP_PROXY or whatever for each application for them to use it. I don't understand this scenario in which ssh is so much faster than whatever else , but instead of thinking of this as a layer 7 problem, I'm tempted to think of it as a lower layer problem. Route all your traffic through whatever host can talk to you and the world faster than you can talk to the world .
– Daniel Farrell
1 min ago