How to do local port forwarding with iptables

So after much searching around, I found the answer uses iptables, setting up a NAT, and using the built-ins PREROUTING and OUTPUT. First, you must have port forwarding enabled: echo “1” > /proc/sys/net/ipv4/ip_forward Then you have to add the following rules to your iptables NAT table, using your own values for ${P_src} and ${P_target}: iptables … Read more

iptables in android

iptables is available in Android source distribution. That version however only works with devices built with Linux kernel 2.6.29. Users of retail Android devices cannot access iptables binary. Even Android OS itself cannot access that binary. This is hard-coded in Android. Many devices also don’t have iptables at all. The only way to access iptables … Read more

How to permanently update iptables [closed]

Ubuntu (and Debian) offer the package iptables-persistent (Debian: http://packages.debian.org/wheezy/iptables-persistent , Ubuntu: http://packages.ubuntu.com/saucy/iptables-persistent) , which does exactly what you want. As root, or via sudo: apt-get install iptables-persistent iptables-save > /etc/iptables/rules.v4 If you’re working with ip6tables, you’ll want to also ip6tables-save > /etc/iptables/rules.v6. You must save the tables again (iptables-save > /etc/iptables/rules.v4, ip6tables-save > /etc/iptables/rules.v6) after … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)