Can PirateBox sharing internet from WAN port to the LAN/Wifi ?

Posted by kiddie 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
February 24, 2016 01:37AM
I've installed piratebox in my GLiNet v1 but I can't use the internet. I want to share my internet from mikrotik into WAN port, but seems like not successful..
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
February 24, 2016 01:45AM
Oh. I've check ifconfig. I see WAN port have an IP from dhcp-server in mikrotik. But the connection does not share in LAN/wifi
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
February 24, 2016 03:23AM
You need to bridge the connections.


PirateBox Installs:
2x Zsun's (both testing, one with serial interface)
A5-V11 (mostly for OpenWRT testing DIY)
2x RPi Zero's
(one active in car 24/7, gets a lot of hits at Walmart, movie theaters and the mall)
2x RPi3's (both home servers, one Ubuntu custom install along side a ton of other services)
1x RPi2 (currently work server)
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
February 24, 2016 03:51PM
Sorry, the answer is very simple: You can't share internet with your PirateBox. It is not possible by design.
You can do alot of reconfiguration, but I'm not sure if you won't affect your original piratebox functionality
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
March 06, 2016 03:12PM
Matthias Wrote:
-------------------------------------------------------
> Sorry, the answer is very simple: You can't share
> internet with your PirateBox. It is not possible
> by design.
> You can do alot of reconfiguration, but I'm not
> sure if you won't affect your original piratebox
> functionality


Hi, Matthias thanks already set aside time to reply. I see that piratebox functionality but sometimes I think to need download some files from the internet and I save it into piratebox directory. Oh, can I install torrent client in this machine ?
Sorry for my english



Edited 1 time(s). Last edit at 03/06/2016 03:22PM by kiddie.
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
March 09, 2016 05:57AM
Yes, you can install a torrent client on the machine, You may have some issues with getting all the dependencies solved.
When you want to download software on the box itself, you can feel lucky. The Glinet has a separate WAN port, so you can just disable the dns-redirect for the box itself:

/etc/init.d/piratebox nodns

Put the ethernet cable to the WAN port, and try to ping google.com

ping -c5 google.com

if you see another IP then 192.168.1.1 and you get resolves, it works out.

Matthias
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
March 17, 2016 04:13AM
I got some problem here. When I need config to enable box for internet and following this:

Language: PHP
cp /etc/config/network /etc/config/network.backup uci set network.wan=interface uci set network.wan.ifname=$( uci get network.lan.ifname ) uci set network.wan.macaddr=$( uci get network.lan.macaddr ) <== uci: Entry not found uci set network.wan.proto=dhcp uci del network.lan.ifname uci commit

then go to the next step

Language: PHP
/etc/init.d/piratebox nodns

It's still loopback on my IP Address. In this issue I used tl-mr3020

How to fix them, Sir ?
Re: Can PirateBox sharing internet from WAN port to the LAN/Wifi ?
March 21, 2016 09:01PM
after changing the network configuration, you need to enable it
/etc/init.d/network reload

A proper resolved dns server will exchange the 192.168.1.1, I guess.