im trying to "bridge" a wifi-spot to my pc. I mean, i connect my router to a wifi-spot successfully(WPA2-EAP) but now i wanna have access and use internet through LAN cable or repeat that free wifi-spot wirelessly.
i read several tutorials like : This and i tried relayd but i dont get internet access in my pc!
(just as additional info: im trying to use Unitymedia WiFi-spot. just an info for German users!)
im using TP-Link TL-WDR4300 (ar71xx) v1.6 OpenWrt 18.06.4
WinSCP and PuTTY (i have no linux)
the wifi-spot needs username and password (EAP-MSCHAPV2).
router has internet connection. i can update package lists but no ping (but to not be able to ping is not fault of router. if i connect with my laptop directly to wifi-spot, i cant neither ping, but i have internet. this wifi-spot hast generally problem with pinging !!!!!!!!!! so i cant even ping with my smartphone and pc and not only with router.)
changing the router's ip is very strange. i change it to 192.168.15.1 and change my pc's ip to 192.168.15.2 and then i cant connect to router any more(i must do ip hardcoring...). and after several tries to connect to router, the router resets to 220.127.116.11 automatically. router's ip must stay 192.168.1.1 and no specified ip fpr my pc!
A third party hotspot assumes there will be only one device attached to it. You would route your devices into that one connection. Make the hotspot client the WAN instead of an Ethernet port (do not enable bridge on the wan). Do not use relayd, you simply want to treat the hotspot as an ISP and not otherwise interact with its network.
If the hotspot uses a 192.168.1.x IP you must change your lan to something else. This leaves the DHCP server active so once you disconnect and reconnect your PC it will pick up a proper address.
I don't really like the "Join" button. It does extra things (create a "wwwan" network, lock the client to one BSSID) that aren't necessary for basic use.
Under network / wireless, create a new interface and configure the network SSID and encryption(*) manually and attach it to the existing WAN network. Go to WAN physical settings and make sure any default ethernet port has been removed and WAN is not a bridge.
Once you have connected to the hotspot, your WAN IP will show on the main status page.
To connect to a WPA-Enterprise network you will need to replace the default wpad-mini or wpad-basic package with the full wpad.
As I understand you need to configure your OpenWrt router to connect with wifi to an hot spot and connect your pc to the router ( by wire between lan sockets pc <--> router) just to let the pc to surf internet (you don't need relayd).
Try starting from the begin!
Reset router by button or by luci web page( system/backup-flash...).
Connect you pc as usual to router using lan cable.
Reach the router at 192.168.1.1 up.
On page network/wireless click scan button.
When scan is finished on the row of your target wifi select join network button.
Fill fields as necessary, is better to fill also field of dns with google ips (18.104.22.168 and 22.214.171.124) in case your internet connection would fail for a dns resolving failure.
Save and apply.
After applied in network/wireless you should see that the router is associated with hotspot succesfully under Associated Stations section.
In network/interfaces you should notice only two, wwan and lan, just in case the two interfaces join similar class of network ( in that bad case wwan could be 192.168.1.x) you have to change ip of lan interface (say 192.168.2.1) editing it and leaving all as is except for ip.
You should be ready now, just for test in network/ diagnostics click on ping button if ok your pc is able to surf internet, if not ok in the field over ping button with 'openwrt.org' delete and insert 126.96.36.199 and ping again if ok you forgot dns values in wwan interface. If happens the same on pc ( ping domain and ping ip) dns configuration leaks in lan interface.
Let me know...
Big THANKS to everybody who tried to help me.
i solved it, but a little bit different!
after some steps then i created/added another wireless network under radio0. now i have two wireless networks. one connected to hotspot and one as mode:master and accepoint and as lan(network) (but its still wifi and under wireless overview).
under Interface and LAN:\Physical Settings : you must check the "Bridge interfaces" and below interface choose or check 3 networks which you wanna bridge them:
(x)- Switch VLAN: "eth0.1"(lan)
(x)- Wireless Network: Master "openWrt"(lan) /repeating as wireless
(x)- Wireless Network: Master "openWrt"(lan) /LAN port
weird settings, but works since yesterday stable.