Go to advanced search

by SurferTim
Sat Aug 25, 2018 1:58 am
Forum: Networking and servers
Topic: RPI3 as Access Point - no internet access
Replies: 11
Views: 6521

Re: RPI3 as Access Point - no internet access

If you can connect to the RPi's AP but don't receive an IP, then that is a problem with dnsmasq. Check the status.

Code: Select all

sudo service dnsmasq status
It should show active (running), and additional lines showing what IPs it has issued.
by SurferTim
Tue Aug 21, 2018 11:30 am
Forum: Networking and servers
Topic: RPI3 as Access Point - no internet access
Replies: 11
Views: 6521

Re: RPI3 as Access Point - no internet access

monapi wrote: hi
i want to use the solution that SurferTim said.
for this should i delete the OS and install it again because my raspberry pi which become an access point does'nt have internet to update and install dnsmasq hostapd.
please help me.
thank you
AFAIK, you need an internet connection.
by SurferTim
Tue Aug 21, 2018 11:28 am
Forum: Troubleshooting
Topic: Unable to setup Wifi access point on raspbian stretch
Replies: 32
Views: 28556

Re: Unable to setup Wifi access point on raspbian stretch

The file are writable if you use

Code: Select all

sudo nano /etc/dhcpcd.conf
sudo nano /etc/hostapd/hostapd.conf
To save, use <CTRL>o (letter, not number)
by SurferTim
Mon Aug 20, 2018 9:17 pm
Forum: Networking and servers
Topic: IPtables help
Replies: 3
Views: 721

Re: IPtables help

I don't see where you need iptables. This is a routing thing. Insure you have allowed ip forwarding. Edit /etc/sysctl.conf and uncomment net.ipv4.ip_forward=1 That should allow most devices access to the camera, except "other devices" connected to the router. You will need to route that in the router.
by SurferTim
Mon Aug 20, 2018 4:34 pm
Forum: Troubleshooting
Topic: Wi-Fi Hotspot
Replies: 2
Views: 207

Re: Wi-Fi Hotspot

Also depends on what country you are in. The US has a 1000mw tx power limit, but some countries the max is 100mw. I use an Alfa usb wifi device, and it does pretty good as an AP. It must be set as wlan0 though. I haven't been able to figure out why hostapd has a problem with wlan1.
by SurferTim
Fri Aug 17, 2018 11:31 am
Forum: Troubleshooting
Topic: [SOLVED] Static Ip Problem
Replies: 5
Views: 1265

Re: Static Ip Problem

If both device have the same subnet, you will have routing problems. The interface with the largest subnet mask has priority, and if the subnet masks are equal, as in your case, then the lowest metric has priority. If you want them to work correctly, you should use different subnets on each interfac...
by SurferTim
Thu Aug 16, 2018 12:47 pm
Forum: Networking and servers
Topic: WLan to LAN bridge without DHCP and same IP-Address Area
Replies: 4
Views: 926

Re: WLan to LAN bridge without DHCP and same IP-Address Area

apfelsaft87 wrote:Okay and is it possible using jessie?
I don't think so. You can do a search for "raspberry pi WDS". Here is an example:
https://raspberrypi.stackexchange.com/q ... o-ethernet
by SurferTim
Thu Aug 16, 2018 11:32 am
Forum: Networking and servers
Topic: WLan to LAN bridge without DHCP and same IP-Address Area
Replies: 4
Views: 926

Re: WLan to LAN bridge without DHCP and same IP-Address Area

I have not found a way to bridge a wireless client to any other interface. The bridge utilities won't allow it using Stretch. You can bridge a wireless AP, but that is accomplished with hostapd.
by SurferTim
Wed Aug 15, 2018 1:54 pm
Forum: Troubleshooting
Topic: can not launch hostapd on raspberry pi 3B+
Replies: 7
Views: 396

Re: can not launch hostapd on raspberry pi 3B+

You can check the hostapd status with this.

Code: Select all

sudo service hostapd status
It should show active (running). If it doesn't you have a problem.

Use the documentation that B.Goode recommended. We can help you with that.
by SurferTim
Wed Aug 15, 2018 1:30 pm
Forum: Networking and servers
Topic: Raspberry pi doesn't connect to internet
Replies: 28
Views: 1832

Re: Raspberry pi doesn't connect to internet

You might want to try nslookup and traceroute to determine the DNS problem. You might need to install network utilities to use them.
by SurferTim
Wed Aug 15, 2018 12:21 pm
Forum: Networking and servers
Topic: Raspberry pi doesn't connect to internet
Replies: 28
Views: 1832

Re: Raspberry pi doesn't connect to internet

If you have a PC connected to the localnet, check the DNS servers it is using. Google's DNS servers can be slow.
by SurferTim
Wed Aug 15, 2018 11:24 am
Forum: Networking and servers
Topic: Raspberry pi doesn't connect to internet
Replies: 28
Views: 1832

Re: Raspberry pi doesn't connect to internet

This works for me. Edit /etc/dhcpcd.conf and add this at the end.

Code: Select all

interface eth0
static ip_address=192.168.1.138/24
static routers=192.168.1.254
static domain_name_servers=8.8.8.8
Do not modify /etc/network/interfaces unless you are using a bridge.
by SurferTim
Wed Aug 15, 2018 1:33 am
Forum: Networking and servers
Topic: Raspberry pi doesn't connect to internet
Replies: 28
Views: 1832

Re: Raspberry pi doesn't connect to internet

keiichi wrote: I don't understand. Why can't the pi resolves the ip address?
Bad dns server assignment? Looks like when you are using a domain name ping, it is using IPV6 addresses.
by SurferTim
Tue Aug 14, 2018 10:50 am
Forum: Networking and servers
Topic: How to Setup Wifi to Wifi access point?
Replies: 1
Views: 180

Re: How to Setup Wifi to Wifi access point?

I assume you want to use two wifi devices. I've tried using one wifi device for both the client and AP, but speed and reliability were problematic. Otherwise, it's the same as using ethernet for the WAN interface. Use the NAT setup here: https://www.raspberrypi.org/documentation/configuration/wirele...
by SurferTim
Sun Aug 12, 2018 7:20 pm
Forum: Networking and servers
Topic: connect tv through ethernet to pi
Replies: 1
Views: 268

Re: connect tv through ethernet to pi

You'll probably want to set up a dhcp server on eth0, like dnsmasq.
You'll need to allow ip forwarding.
You'll need a masquerade.
by SurferTim
Thu Aug 09, 2018 11:47 am
Forum: Troubleshooting
Topic: Pi3+ with USB WiFi as hotspot
Replies: 4
Views: 677

Re: Pi3+ with USB WiFi as hotspot

Some wifi devices are not capable of ap mode. I own one. My newer devices from Alfa do fine. Despite that, I have discovered that you can set up an AP on wlan0 only. All attempts I have tried to set up an AP on wlan1 failed. You can assign fixed interface names with this: Create file /etc/udev/rules...
by SurferTim
Mon Aug 06, 2018 11:01 am
Forum: Networking and servers
Topic: SSH to a raspberry pi that has it's own network
Replies: 8
Views: 709

Re: SSH to a raspberry pi that has it's own network

B.Goode wrote:
Mon Aug 06, 2018 9:54 am
But puzzled that having a service not enabled would result in a 'No route to host' error.
Same here. Other OSs report "connection refused" if the destination device is localnet.
by SurferTim
Mon Aug 06, 2018 1:20 am
Forum: Networking and servers
Topic: Dual Wifi - 1 x AP and 1 x Network Wifi Bridge
Replies: 1
Views: 259

Re: Dual Wifi - 1 x AP and 1 x Network Wifi Bridge

Not as a bridge but as a NAT. The first example here. https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md The catch is the AP must be wlan0. Create file /etc/udev/rules.d/72-static-name.rules Add this, changing the mac addresses. ACTION=="add", SUBSYSTEM=="net", DRIVERS=...
by SurferTim
Sun Aug 05, 2018 5:25 pm
Forum: Networking and servers
Topic: SSH to a raspberry pi that has it's own network
Replies: 8
Views: 709

Re: SSH to a raspberry pi that has it's own network

You still have my attention. There could be problems with the setup. If the client device that connected to the AP didn't get network settings, that give me a place to start troubleshooting. That is normally caused by the dnsmasq service. To check the status, open a terminal on the RPi and run this:...
by SurferTim
Sun Aug 05, 2018 2:36 pm
Forum: Networking and servers
Topic: Rasberry PI WIFI AP and LAN as Bridge without any internet
Replies: 1
Views: 187

Re: Rasberry PI WIFI AP and LAN as Bridge without any internet

You cna't bridge a wifi client interface to any other interface. Is the LAN interface an ethernet interface?
by SurferTim
Sun Aug 05, 2018 2:33 pm
Forum: Networking and servers
Topic: SSH to a raspberry pi that has it's own network
Replies: 8
Views: 709

Re: SSH to a raspberry pi that has it's own network

Could be a few things.
Does the client get network settings via DHCP?
What IP/subnet does the client have?
What IP/subnet does the RPi have on the wireless interface?
by SurferTim
Sat Aug 04, 2018 11:07 am
Forum: Troubleshooting
Topic: Pi Zero W: Unable to ping/ssh after /etc/dhcpcd.conf change
Replies: 12
Views: 1013

Re: Pi Zero W: Unable to ping/ssh after /etc/dhcpcd.conf change

What IP/netmask does the Mac have? Normally a 169.254.x.x. network uses a /16 (or 255.255.0.0) netmask.
by SurferTim
Sat Aug 04, 2018 1:02 am
Forum: Networking and servers
Topic: Acess point, redirect to HTTP, capture packets!
Replies: 5
Views: 837

Re: Acess point, redirect to HTTP, capture packets!

If you redirect to a HTTPS URL, that URL would require a key and certificate. You can generate your own key, but many web browsers throw a warning when a site is self signed.
by SurferTim
Fri Aug 03, 2018 7:33 pm
Forum: Networking and servers
Topic: Acess point, redirect to HTTP, capture packets!
Replies: 5
Views: 837

Re: Acess point, redirect to HTTP, capture packets!

Acujl wrote:That's exactly it! Wanna learn how it works!
That's easy. It doesn't. You can redirect HTTP to HTTPS and HTTP to HTTP. You can't redirect HTTPS on one site to HTTP on another unless you have a key installed for that SSL URL. Otherwise, the SSL key won't work.
by SurferTim
Fri Aug 03, 2018 11:11 am
Forum: Networking and servers
Topic: Acess point, redirect to HTTP, capture packets!
Replies: 5
Views: 837

Re: Acess point, redirect to HTTP, capture packets!

So, everything I do in a HTTP website can be captured because dosen't have encryption, and that is what I want my AP to do! What is the purpose of this? It seems like you are attempting a man-in-the-middle attack in order to acquire personal information from those connected to your AP. Please tell ...

Go to advanced search