Video Tutorial How to Install TinyProxy Forward Proxy for Xenforo

Hexui Undetected CSGO Cheats PUBG Accounts

Rake

I'm not your friend
Administrator
Jan 21, 2014
12,965
78,998
2,463
If you are trying to hide your origin IP address behind a CDN and protect yourself DDOS attacks you will need to use a separate proxy server for all outgoing requests. On Xenforo if you enable URL unfurling or link or image proxying this will send a request out to the target web server. An attacking can simply hot link and image or unfurl a URL that he controls and in his logs he will see your server IP. For this reason you must use a forward proxy. This video will teach you how to install tinyproxy

We needed to do this to proxy outgoing webserver connections, TinyProxy was really easy to setup and works great. I set it up on a 5$ Digital Ocean droplet using CentOS. You can also combine it with your email server if you followed our previous mailcow tutorial

Tinyproxy is an easy to use yet small HTTP/HTTPS proxy for POSIX operating systems. It can be used for deployments where a full HTTP proxy is needed, however system resources are unavailable for such a large daemon. Tinyproxy is distributed using the GNU GPL license (version 2 or above). XenForo is an internet forum written in the PHP scripting language. XenForo was developed by former vBulletin lead developer Kier Darby and first released in its beta version October 2010.

Tinyproxy allows forwarding of HTTPS connections, supports being configured as a transparent proxy, and can also be used as a reverse proxy. Configuring which HTTP headers should be allowed and blocked is a main feature of TinyProxy’s privacy settings. This allows restriction of data that comes from server to web browser (cookies etc..) and restrictions from your web browser to server(e.g version information). You can configure TinyProxy to allow requests from a required subnet, or interface. This will keep unwanted individuals with bad intentions form using your proxy. By hot linking a URL or image on your website a hacker can pull GET requests from your server uncovering your IP. This is where TinyProxy can help keep you safe and secure. In this tinyproxy tutorial you will learn how to set up TinyProxy with your XenForo server

If you’re trying to keep a optimal level of anonymity and protect your servers from DDOS attacks than setting up a proxy server is a step in the right direction. Hackers are constantly trying to breach your data and a proxy is one level of security that can keep you and your information/servers safe. Using CentOS this tutorial will show you how TinyProxy’s small memory footprint of around 2MB is quick and easy to setup and edit server IPs, and anonymous proxy settings using the tinyproxy.conf file. And also show you how to setup XenForos configuration file with your TinyProxy service.

How to Install TinyProxy Forward Proxy for Xenforo

Bash:
yum install epel-release;
yum update;
yum install tinyproxy;

/usr/sbin/tinyproxy stop;

nano -w /etc/tinyproxy/tinyproxy.conf

#modify the config and set:

XTinyproxy No # (turns off transparent proxy, stop sending source IP in header)

#Allow any IPs that will connect to this proxy, everything else will be auto denied
Allow xxx.xxx.xxx.xxx #replace xxx with your IP, duh

/usr/sbin/tinyproxy start
Open config.php in Xenforo and add:

Code:
$config['http']['proxy'] = 'http://ipaddress:port';
You can test it using these urls:
/admin.php?options/groups/messageOptions/#urlToRichPreview
/admin.php?options/groups/imageLinkProxy/#imageLinkProxy

That's it!
 
Last edited:
  • Like
Reactions: Lukor

Rake

I'm not your friend
Administrator
Jan 21, 2014
12,965
78,998
2,463
Tinyproxy
Tinyproxy is a light-weight HTTP/HTTPS proxy daemon for POSIX operating systems. Designed from the ground up to be fast and yet small, it is an ideal solution for use cases such as embedded deployments where a full featured HTTP proxy is required, but the system resources for a larger proxy are unavailable.

Features
Tinyproxy has a small footprint and requires very little in the way of system resources. The memory footprint tends to be around 2 MB with glibc, and the CPU load increases linearly with the number of simultaneous connections (depending on the speed of the connection). Thus, Tinyproxy can be run on an older machine, or on a network appliance such as a Linux-based broadband router, without any noticeable impact on performance.

Tinyproxy requires only a minimal POSIX environment to build and operate. It can use additional libraries to add functionality though.

Tinyproxy allows forwarding of HTTPS connections without modifying traffic in any way through the CONNECT method (see the ConnectPort directive).

Tinyproxy supports being configured as a transparent proxy, so that a proxy can be used without requiring any client-side configuration. You can also use it as a reverse proxy front-end to your websites.

Tinyproxy is distributed using the GNU GPL license (version 2 or above).
 
Last edited:

Lukor

ded
Meme Tier VIP
Fleep Tier Donator
Dec 13, 2013
508
6,323
25
I think its good how you make those tutorials short and basic.

Its not your job to teach others how tinyproxy or xenforo works.
And if someone needs to do this, they should inform/readup on that themselves anyway so they actually know what they are doing.
 
Community Mods