Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(solved) unable to get working on raspberry pi with dnsmasq, vpn #49

Closed
GeneDot3 opened this issue Mar 11, 2021 · 6 comments
Closed

(solved) unable to get working on raspberry pi with dnsmasq, vpn #49

GeneDot3 opened this issue Mar 11, 2021 · 6 comments

Comments

@GeneDot3
Copy link

I have another pi with an older driver working fine as a network bridge, when I install this driver and use the same bridge and iptable configs it does not pass traffic through the vpn.
Raspberry Pi mod 4, Raspian OS,
iptable config:
-A FORWARD -i eth0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wlan1 -o eth0 -j ACCEPT
-A FORWARD -i eth0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i tun0 -o eth0 -j ACCEPT
-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wlan0 -o eth0 -j ACCEPT
-t nat:
-A POSTROUTING -o tun0 -j MASQUERADE.
I would like to use your driver as when installed, and vpn is unloaded, it provides much better speed than the old driver.
Not sure what other info you might need, just ask and i'll provide.

Thanks in advance,
Gene.

@morrownr
Copy link
Owner

Gene, it is good to meet you.

It may take me a couple of days to have time to investigate this. It will help me if I fully understand what setup you have:

What version of the RasPi are we talking about?
What version of the RasPi OS?
What adapter are you using?
Do you use a powered hub? If so, what is it?
Do you have a checklist you follow to set this up? If so, can I see it? Things work better when I can duplicate things.
Are you using hostapd?

Some info: This 88x2bu driver has made me mad at times. Yes, it is fast... but it has a few fleas. In fact, of the drivers I am maintaining and the info sites I maintain, there are only 2 drivers that I have found that are fully stable at high speeds (80 mhz channel width) and of those 2, only one is capable across board and by that, I mean things like WPA3-SAE, etc. Here goes:

Alfa AWUS036ACM - mt7612u - driver is in-kernel - wonderful AP mode support - does WPA3 with hostapd. Overall, best AC1200 class usb adapter for Linux. Period.

Alfa - AWUS036ACH - rtl8812au - driver repo - https://github.com/morrownr/8812au - really solid driver - best out-of-kernel driver from Realtek - lacks some features that all Realtek drivers lack like WPA3.

For more info on usb adapters and Linux - https://github.com/morrownr/USB-WiFi

@GeneDot3
Copy link
Author

GeneDot3 commented Mar 11, 2021 via email

@morrownr
Copy link
Owner

So, let me make sure everything is clear in my mind: You are using a RasPi 4b with a 8812bu based usb adapter to run a bridged access point with ethernet cable providing the internet. Correct me if I am wrong. This and the other issues I am working makes for a lot of information to process.

Questions:

You say you are running Raspian OS Buster. I'd like to get clarification without me having to take time to research this. My RasPi 4b is running the Raspberry Pi OS 32 bit fully updated to the present. The kernel is v5.10. The name of the official RasPi OS was changed from Raspian to Raspberry Pi OS at some point last year. Are you telling me that you are running an old version from when it was still called Raspian? What version is the kernel?

I have no experience with VPN's. Can you point me to information that can help me spin up to speed on the topic?

Regards/

@GeneDot3
Copy link
Author

GeneDot3 commented Mar 12, 2021 via email

@GeneDot3
Copy link
Author

GeneDot3 commented Mar 13, 2021 via email

@GeneDot3
Copy link
Author

SUCCESS!!!!!
I had my iptables fouled up.
New iptables structure:

-t nat -A POSTROUTING -o tun0 -j MASQUERADE
-A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o tun0 -j ACCEPT
-A FORWARD -i tun0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wlan1 -o tun0 -j ACCEPT

You may close this issue, and I thank you for the attention you gave!
Best Regards,
Gene

@morrownr morrownr changed the title unable to get working on raspberry pi with dnsmasq, vpn (solved) unable to get working on raspberry pi with dnsmasq, vpn Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants