Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ben:~# iptables -t mangle -N DIVERT
- iptables: Chain already exists.
- root@ben:~# iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
- root@ben:~# iptables -t mangle -A DIVERT -j MARK --set-mark 1
- root@ben:~# iptables -t mangle -A DIVERT -j ACCEPT
- root@ben:~# ip rule add fwmark 1 lookup 100
- root@ben:~# ip route add local 0.0.0.0/0 dev lo table 100
- RTNETLINK answers: File exists
- root@ben:~# echo 0 >/proc/sys/net/ipv4/conf/lo/rp_filter
- root@ben:~# ps -ef | grep stunnel
- root 5323 4225 0 15:53 pts/3 00:00:00 grep --color=auto stunnel
- root@ben:~# ps -ef | grep stunnel
- root 5329 3879 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
- root 5330 5329 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
- root 5331 5329 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
- root 5332 5329 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
- root 5333 5329 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
- root 5334 5329 0 15:53 pts/0 00:00:00 stunnel4 /etc/stunnel/stunnel.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement