I have got a virual AP setup with dhcpd apache and airbase-ng
and im trying to get it into Non Transparent mode,
i have tried this but it does not work:
Code:
10.ifconfig at0 up
11.ifconfig lo up
12.ifconfig at0 10.0.0.1 netmask 255.255.255.0
13.ifconfig at0 mtu 1400
14.route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1
15.iptables --flush
16.iptables --table nat --flush
17.iptables --delete-chain
18.iptables --table nat --delete-chain
19.iptables -t nat -A PREROUTING -p udp -j DNAT --to 10.0.0.1
20.iptables -P FORWARD ACCEPT
21.iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 10.0.0.1
if i type 10.0.0.1 in the client then it will go to my webpage
Bookmarks