PPTP GRE Traffic on DDWRT

Creating a PPTP VPN Server on your DDWRT enabled/hacked router might not work for you. This is usually because GRE is blocked although the TCP port for PPTP is enabled.

You need to run some custom commands on the router at each boot to allow the GRE traffic.

Under Administration -> Commands


/sbin/insmod nf_conntrack_proto_gre
/sbin/insmod nf_conntrack_pptp
/sbin/insmod nf_nat_proto_gre
/sbin/insmod nf_nat_pptp

Add that to a startup/boot script. Save.

Found the information at http://www.jcsilva.com/2011/01/09/issues-with-dd-wrt-gre-forwarding-pptp/

They have two extra lines, but they were not needed on my setup.

By |November 29th, 2012|Categories: General|Tags: , , , |0 Comments

Android Tips, Commands, Modifications

[mod][root][needs init.d enabled kernel]
Change Hostname:


$ su
# vi /system/etc/init.d/99hostname

Type in


#!/system/bin/sh
setprop net.hostname tablethostname

Save the file, reboot.
———————-

[mod][root]
Change System DNS Servers:


$ su
# vi /system/etc/resolv.conf

If the file does not exist or is empty, just create it.

Type in


nameserver 8.8.8.8
nameserver 8.8.4.4

Those are google DNS servers, or specify your own.
Save file, possibly reboot tablet.
———————-

By |November 29th, 2012|Categories: General|Tags: , |0 Comments

Using Fail2Ban + Postfix Fight SPAM

Using the following to prevent multiple connections to Postfix SMTP server from spam connections.

/etc/fail2ban/jail.conf


[spam]
enabled  = true
filter   = spam
action   = iptables[name=spam, port=smtp, protocol=tcp]
           sendmail-whois[name=SPAM, dest=email@address]
logpath  = /var/log/mail.log
maxretry = 2

/etc/fail2ban/filter.d/spam.conf


[Definition]
failregex = reject: RCPT from (.*)\[\]: 55\d
ignoreregex =

Found a good example here: http://blog.dp.cx/25/postfix-fail2ban-win/

By |November 20th, 2012|Categories: General|Tags: , , , |0 Comments

Maintain SSH Tunnel Linux & Windows

“With SSH an encrypted tunnel through an open port in the private network’s firewall can be established. This tunnel forwards network traffic from a specified local port to a port on the remote machine, securely.”

Just a reference to help some others. Create a persistant port forwarding tunnel between a Linux (server) machine and a Windows (server) machine.

Full site here, lots of information: http://pdw.weinstein.org/2011/07/establish-and-maintain-an-ssh-tunnel-between-linux-and-windows.html.

By |November 2nd, 2012|Categories: General|Tags: , , , |0 Comments