OpenWRT Tinyproxy

Als Webfilter.

Software -> Download and install tinyproxy luci-app-tinyproxy

Service -> Tinyproxy -> Configuration -> Filtering and ACLs

Allowed Clients: 192.168.0.0/24

Filter File -> Upload, Example:

erotic
fashion
fitness
naked
porno
sexy
swimsuit
underwear
playboy.com:80
google.*:80/.*(porn|sex)
youtube.com:80/.*(porn|sex)
yahoo.com:80/.*sex

Für Transparenten Redirect:

Datei /etc/config/firewall

config redirect
    option _name 'proxy'
    option src 'lan'
    option proto 'tcp'
    option src_dport '80'
    option dest_port '8888'
    option src_dip '!192.168.0.1'
    option dest_ip '192.168.0.1'

Quellen:
http://wiki.openwrt.org/doku.php?id=oldwiki:proxy.tinyproxy
https://forum.openwrt.org/viewtopic.php?id=40631

Openwrt PPTP Server

Software -> Download and install pptp kmod-mppe

Datei /etc/ppp/options

#debug
logfile /dev/null
noipdefault
noaccomp
nopcomp
nocrtscts
lock
maxfail 0
lcp-echo-failure 5
lcp-echo-interval 1

Datei /etc/ppp/options.pptpd

#debug
logfile /tmp/pptp-server.log
192.168.0.50:
auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
proxyarp
mppe required,no40,no56,stateless

Datei /etc/ppp/chap.secrets

#USERNAME  PROVIDER  PASSWORD  IPADDRESS
name1 * passwort1 ip1(z.B.192.168.0.51)
name2 * passwort2 ip2(z.B.192.168.0.52)

Datei /etc/config/firewall

config rule
	option target 'ACCEPT'
	option _name 'pptpd'
	option proto 'tcp'
	option dest_port '1723'
	option family 'ipv4'
	option src 'wan'

Datei /etc/firewall.user

iptables        -A forwarding_rule -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables        -A output_rule     -o ppp+ -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables        -A input_rule      -i ppp+ -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT