Bash script ~ JustRyuz @Tutorial wo.0t??...
#########################################################
# yur4kh4 #
#########################################################
#!/bin/sh
INTERFACE=”wlan0″ #lihat interface dengan menaip ifconfig diterminal
SERVERWEB=’10.42.43.23′ #ip enter
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
#clear rule..
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface $INTERFACE –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface $INTERFACE –jump MASQUERADE
#rendirect traffic.. on my server/proxy
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination $SERVERWEB
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination $SERVERWEB
# yur4kh4 #
#########################################################
#!/bin/sh
INTERFACE=”wlan0″ #lihat interface dengan menaip ifconfig diterminal
SERVERWEB=’10.42.43.23′ #ip enter
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
#clear rule..
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface $INTERFACE –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface $INTERFACE –jump MASQUERADE
#rendirect traffic.. on my server/proxy
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination $SERVERWEB
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination $SERVERWEB