Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - skidnik

Pages: [1]
1
CWP version 0.9.8.894
Steps:
1. Go to user panel.
2. Add new subdomain.
Result:
A directory created for the subdomain has permissions 640. This prevents apache (in my case) from accessing the directory and files in it, results in a 403 error.
403 error can be fixed by `chmod a+rx subdomain_directory`
Expected result:
The subdomain directory created with 644 permissions.

2
CSF Firewall / adding rules for OpenVPN breaks user-panel login
« on: April 24, 2018, 07:25:49 AM »
I don't have a slightest idea how this is related to each other, but when i add iptables rules to the FORWARD chain and nat table POSTROUTING chain through csfpre.sh/csfpost.sh, they break user panel login (2082, 2083 ports): when you enter valid credentials login page just reloads.
Here are the rules:
Code: [Select]
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -j SNAT --to-source 12.34.56.78 #real server ip is here instead

Pages: [1]