Re: (Arch)Linux source routing help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> here are the commands used:
>
> # ip tuntap add tap0 mode tap user me
> # ip addr add 192.168.11.254/24 dev tap0
> # ip link set tap0 down
> # echo 11 tap0 >> /etc/iproute2/rt_tables
> # ip rule add from 192.168.11.254 lookup tap0

you probably want `from 192.168.11.0/24` here
(iif tap0 should also be an option)

> # ip route add default via 192.168.144.254 dev wlan0 proto dhcp src 192.168.144.1
> # echo 1 > /proc/sys/net/ipv4/ip_forward
> # iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE




-- 
damjan



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux