Share EasyTether Tap Adapter Over Ethernet / Other Network?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am using EasyTether Pro on Arch Linux. I read the Arch Internet sharing Wiki. It and some other sources gave me some commands to work with:
easytether-usb
dhcpcd tap-easytether
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o tap-easytether -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i enp2s0f1 -o tap-easytether -j ACCEPT
iptables -I INPUT -p udp --dport 67 -i enp2s0f1 -j ACCEPT
iptables -t nat -A POSTROUTING -o tap-easytether -s 10.0.0.1/24 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface tap-easytether -j MASQUERADE
iptables --append FORWARD --in-interface enp2s0f1 -j ACCEPT
EasyTether works perfectly to get Internet in Arch via connecting my cell phone with USB but I need to also share the easytether USB interface tap-easytether
with my existing Ethernet interface. I want to do this so that I can share my EasyTether connection with my house. I want to manually specify ipv4 settings on the devices in my house to use my Arch as the default gateway. The ethernet is connected to my house's router. The router cannot disable DHCP. This should still be no problem as long as I manually specify default gateway in my devices.
Note: The ethernet network and EasyTether network are both using 2 different IP ranges (eth0 is 10.0 and easytether is 192.168).
I think it is possible to share Internet for some interfaces using Network Manager for Cinnamon Desktop does not show the easytether tap Interface, only the Ethernet. Also, I don't even see any Internet connection sharing option in the Network Manager GUI under the ethernet adapter's options (I think Ubuntu has this feature). I think this means I need to do everything from command line.
Another problem is that every time I plug my ethernet in, my easytether Internet stops working because the router on the ethernet network sets the DNS and my system tries to use that for Internet instead of easytether. Internet works again as soon as I unplug the ethernet cable.
So I need to figure out how to act as a gateway on ethernet and forward that through to easytether. I also need to stop my system from trying to use ethernet as the Internet connection. The router in question doesn't let me disable anything. Everything needs to be done in Linux, which I know it must be possible.
networking arch-linux networkmanager ethernet internet
add a comment |
I am using EasyTether Pro on Arch Linux. I read the Arch Internet sharing Wiki. It and some other sources gave me some commands to work with:
easytether-usb
dhcpcd tap-easytether
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o tap-easytether -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i enp2s0f1 -o tap-easytether -j ACCEPT
iptables -I INPUT -p udp --dport 67 -i enp2s0f1 -j ACCEPT
iptables -t nat -A POSTROUTING -o tap-easytether -s 10.0.0.1/24 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface tap-easytether -j MASQUERADE
iptables --append FORWARD --in-interface enp2s0f1 -j ACCEPT
EasyTether works perfectly to get Internet in Arch via connecting my cell phone with USB but I need to also share the easytether USB interface tap-easytether
with my existing Ethernet interface. I want to do this so that I can share my EasyTether connection with my house. I want to manually specify ipv4 settings on the devices in my house to use my Arch as the default gateway. The ethernet is connected to my house's router. The router cannot disable DHCP. This should still be no problem as long as I manually specify default gateway in my devices.
Note: The ethernet network and EasyTether network are both using 2 different IP ranges (eth0 is 10.0 and easytether is 192.168).
I think it is possible to share Internet for some interfaces using Network Manager for Cinnamon Desktop does not show the easytether tap Interface, only the Ethernet. Also, I don't even see any Internet connection sharing option in the Network Manager GUI under the ethernet adapter's options (I think Ubuntu has this feature). I think this means I need to do everything from command line.
Another problem is that every time I plug my ethernet in, my easytether Internet stops working because the router on the ethernet network sets the DNS and my system tries to use that for Internet instead of easytether. Internet works again as soon as I unplug the ethernet cable.
So I need to figure out how to act as a gateway on ethernet and forward that through to easytether. I also need to stop my system from trying to use ethernet as the Internet connection. The router in question doesn't let me disable anything. Everything needs to be done in Linux, which I know it must be possible.
networking arch-linux networkmanager ethernet internet
add a comment |
I am using EasyTether Pro on Arch Linux. I read the Arch Internet sharing Wiki. It and some other sources gave me some commands to work with:
easytether-usb
dhcpcd tap-easytether
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o tap-easytether -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i enp2s0f1 -o tap-easytether -j ACCEPT
iptables -I INPUT -p udp --dport 67 -i enp2s0f1 -j ACCEPT
iptables -t nat -A POSTROUTING -o tap-easytether -s 10.0.0.1/24 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface tap-easytether -j MASQUERADE
iptables --append FORWARD --in-interface enp2s0f1 -j ACCEPT
EasyTether works perfectly to get Internet in Arch via connecting my cell phone with USB but I need to also share the easytether USB interface tap-easytether
with my existing Ethernet interface. I want to do this so that I can share my EasyTether connection with my house. I want to manually specify ipv4 settings on the devices in my house to use my Arch as the default gateway. The ethernet is connected to my house's router. The router cannot disable DHCP. This should still be no problem as long as I manually specify default gateway in my devices.
Note: The ethernet network and EasyTether network are both using 2 different IP ranges (eth0 is 10.0 and easytether is 192.168).
I think it is possible to share Internet for some interfaces using Network Manager for Cinnamon Desktop does not show the easytether tap Interface, only the Ethernet. Also, I don't even see any Internet connection sharing option in the Network Manager GUI under the ethernet adapter's options (I think Ubuntu has this feature). I think this means I need to do everything from command line.
Another problem is that every time I plug my ethernet in, my easytether Internet stops working because the router on the ethernet network sets the DNS and my system tries to use that for Internet instead of easytether. Internet works again as soon as I unplug the ethernet cable.
So I need to figure out how to act as a gateway on ethernet and forward that through to easytether. I also need to stop my system from trying to use ethernet as the Internet connection. The router in question doesn't let me disable anything. Everything needs to be done in Linux, which I know it must be possible.
networking arch-linux networkmanager ethernet internet
I am using EasyTether Pro on Arch Linux. I read the Arch Internet sharing Wiki. It and some other sources gave me some commands to work with:
easytether-usb
dhcpcd tap-easytether
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o tap-easytether -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i enp2s0f1 -o tap-easytether -j ACCEPT
iptables -I INPUT -p udp --dport 67 -i enp2s0f1 -j ACCEPT
iptables -t nat -A POSTROUTING -o tap-easytether -s 10.0.0.1/24 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface tap-easytether -j MASQUERADE
iptables --append FORWARD --in-interface enp2s0f1 -j ACCEPT
EasyTether works perfectly to get Internet in Arch via connecting my cell phone with USB but I need to also share the easytether USB interface tap-easytether
with my existing Ethernet interface. I want to do this so that I can share my EasyTether connection with my house. I want to manually specify ipv4 settings on the devices in my house to use my Arch as the default gateway. The ethernet is connected to my house's router. The router cannot disable DHCP. This should still be no problem as long as I manually specify default gateway in my devices.
Note: The ethernet network and EasyTether network are both using 2 different IP ranges (eth0 is 10.0 and easytether is 192.168).
I think it is possible to share Internet for some interfaces using Network Manager for Cinnamon Desktop does not show the easytether tap Interface, only the Ethernet. Also, I don't even see any Internet connection sharing option in the Network Manager GUI under the ethernet adapter's options (I think Ubuntu has this feature). I think this means I need to do everything from command line.
Another problem is that every time I plug my ethernet in, my easytether Internet stops working because the router on the ethernet network sets the DNS and my system tries to use that for Internet instead of easytether. Internet works again as soon as I unplug the ethernet cable.
So I need to figure out how to act as a gateway on ethernet and forward that through to easytether. I also need to stop my system from trying to use ethernet as the Internet connection. The router in question doesn't let me disable anything. Everything needs to be done in Linux, which I know it must be possible.
networking arch-linux networkmanager ethernet internet
networking arch-linux networkmanager ethernet internet
asked 1 min ago
xendixendi
297213
297213
add a comment |
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/3.0/"u003ecc by-sa 3.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
});
}
});
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%2f510636%2fshare-easytether-tap-adapter-over-ethernet-other-network%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
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%2f510636%2fshare-easytether-tap-adapter-over-ethernet-other-network%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