Fakeinternet service/package

Hello, arky
you can help me with this configuration I want to carry out a hotspot project that redirects to the ip of my local web server, there is no connection to the internet in the place. Please give me your email. Thank you

@eddy I haven't got this redirect to local web server working yet. @stangri suggested modifying code to achieve some kind of redirect.

I have added the following line to target/imagebuilder/files/repositories.conf

src/gz stangri_repo https://raw.githubusercontent.com/stangri/openwrt-repo/master

But I don't see 'fakeinternet' package in 'make menuconfig' . What am I missing?

Ah, I see. That repo is not a compatible feed. Instructions are in the README: https://stangri.github.io/openwrt-repo/#sdk

pls help fakeinternet not running hat should ido any help here

Got the logs?

@stangri thanks for this package. I have an oddball network setup here... If I have things configured correctly, does that mean I should get a response from ping google.com if Google.com is set to fake?

Also, what address should I select as respond address in webui?

Thanks

DNS is not case sensitive.

If you go to the following URI you will get the following directory listing:
http://detectportal.firefox.com/

# Index of /

1. **[..](http://detectportal.firefox.com/)/**
modified: Fri, 10 Aug 2018 07:16:17 GMT
directory - 0.00 kbyte

2. **[error.cgi](http://detectportal.firefox.com/error.cgi)**
modified: Wed, 15 Aug 2018 08:33:02 GMT
application/octet-stream - 2.20 kbyte

@stangri Perhaps just disabling directory listing would resolve this issue. Sent a patch https://github.com/stangri/openwrt_packages/pull/49

1 Like

That shouldn't be happening, there should be a default 200 page for unknown/unprogrammed URLs.

Let me investigate what's going on and get back to you. What's the package version you've tested with?

Thanks, I have experienced this problem with
fakeinternet( Version: 0.1.2-11_all)
luci-app-fakeinternet (Version git-18.247.53383-f6dd876-5_all)

Cheers

--arky

@stangri Thanks for releasing a new version of the package. Can you please describe/explain the purpose of the new "Redirect ICMP (ping) traffic to router" feature. Thanks!

I was seeing some ICMP requests in the wireshark on a specific case and figured if ever a device/service would try to discover if there's an actual internet by using pings, that would fool it.

Hello,

I cannot find the fakeinternet package in openwrt luci software interface (I did click update lists)

Is this software held on another repository than the default one ?
If yes, how can I add it ?

Also, is it possible to run fakeinternet on a different IP address than the router's current ip address ? Like an alias that would only have fakeinternet on it ?

I like to assign a fake default gateway to all my devices I don't want accessing the internet via dhcp config of a static lease.

See post #1

Thank you

Installation worked properly

First by adding the repository, by pasting the following into openwrt root shell

opkg update
if ubus -S call system board | grep -q '15.05'; then
  opkg install ca-certificates wget libopenssl
elif ubus -S call system board | grep -q '19.07'; then
  opkg install uclient-fetch libustream-mbedtls ca-bundle ca-certificates
else
  opkg install wget-ssl
fi
echo -e -n 'untrusted comment: OpenWrt usign key of Stan Grishin\nRWR//HUXxMwMVnx7fESOKO7x8XoW4/dRidJPjt91hAAU2L59mYvHy0Fa\n' > /etc/opkg/keys/7ffc7517c4cc0c56
sed -i '/stangri_repo/d' /etc/opkg/customfeeds.conf
echo 'src/gz stangri_repo https://repo.openwrt.melmac.net' >> /etc/opkg/customfeeds.conf
opkg update

And then by running this install command

opkg install fakeinternet luci-app-fakeinternet

The service appeared under Services tab in the router web interface

The service started without error in syslog, and even started responding to request with the default settings

Although I am a bit at a loss of how this works.

My goal was to somehow create an IP alias for my router

Router 192.168.1.1
Router alias 192.168.1.2

And I would point the devices I want to fakeinternet, to use the 192.168.1.2 as their default gateway

However I don't see how to setup fakeinternet this way yet.

How does fakeinternet work, if I have a router with real internet ? Won't it let the devices just access the internet ?

In my case I want the devices to think they have internet access, but to in fact not have internet access, not be able to call home and not be able to download and install firmware changes without my permission.

Hello,

I have now run the fakeinternet package I would like to clarify a few things for anyone trying this.

This package, as far as I can tell, is not to be installed on your actual router/network gateway.

After installing both packages and starting the service internet ceased to work on the local network.

I thought it would create a router alias and run on that, so I would have a real gateway at 192.168.1.1 and a fake one at 192.168.1.2, then point all hostiles devices (google,apple,microsoft) to the fakegateway at 192.168.1.2, using DHCP static leases, so they can't call home and download self-crippling firmware.

While this was happening, my good phone detected my wifi has "no internet" but didn't switch to cellular internet on it's own. It is an android 9 os device.

I forgot to check if microsoft OS could detect this condition, I will have to reinstall to check.

any way to avoid using uhttpd? i am using lighttpd any way to make it compatible?

Sure, modify the init script to start a lighttpd instance instead of uhttpd.