19
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Pi 3 + USB WiFiドングルで、Wi-Fi 中継器

Last updated at Posted at 2016-06-10

概要

環境

  • Raspberry Pi 3 + USB WiFiドングル(RTL8188CUS)

手順

  1. ↑のリンクのアクセスポイントの設定を行う。
  2. iptablesの設定で
    1. eth0のかわりに、wlan1にする

      または

    2. 以下のスクリプト使用(VPNGateのとこで使ったやつ)

wget https://raw.githubusercontent.com/mt08xx/vgc/master/chif -O ./chif
chmod +x ./chif
./chif wlan1
sudo mv -i /etc/iptables.ipv4.nat /etc/iptables.ipv4.nat.bak
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"

3. `sudo reboot`

## その他
- ネットワークIntefaceを入れ替えればいろいろできるので、<font color='red'>**有線LANの機器へ中継**</font>、なんてのもできる。
    - `PC(有線LAN) <--> [eth0 - ラズパイ - wlan0] <-> Wifiルータ <->Internet`
    - chifスクリプト内の `IF_from=wlan0`を書き換えればラク?
19
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?