Welcome to Centmin Mod Community
Register Now

Xenforo Migrating from xampp to Linode vps

Discussion in 'Forum software usage' started by Altair, Feb 9, 2018.

  1. Altair

    Altair Member

    57
    3
    8
    Jan 27, 2018
    Ratings:
    +3
    Local Time:
    12:38 PM
    Code:
    [02:50][root@hostname.domain.com public]# csf -r
    Flushing chain `INPUT'
    Flushing chain `FORWARD'
    Flushing chain `OUTPUT'
    Flushing chain `ALLOWDYNIN'
    Flushing chain `ALLOWDYNOUT'
    Flushing chain `ALLOWIN'
    Flushing chain `ALLOWOUT'
    Flushing chain `DENYIN'
    Flushing chain `DENYOUT'
    Flushing chain `INVALID'
    Flushing chain `INVDROP'
    Flushing chain `LOCALINPUT'
    Flushing chain `LOCALOUTPUT'
    Flushing chain `LOGDROPIN'
    Flushing chain `LOGDROPOUT'
    Flushing chain `PORTFLOOD'
    Flushing chain `UDPFLOOD'
    Flushing chain `PREROUTING'
    Flushing chain `INPUT'
    Flushing chain `OUTPUT'
    Flushing chain `POSTROUTING'
    Deleting chain `ALLOWDYNIN'
    Deleting chain `ALLOWDYNOUT'
    Deleting chain `ALLOWIN'
    Deleting chain `ALLOWOUT'
    Deleting chain `DENYIN'
    Deleting chain `DENYOUT'
    Deleting chain `INVALID'
    Deleting chain `INVDROP'
    Deleting chain `LOCALINPUT'
    Deleting chain `LOCALOUTPUT'
    Deleting chain `LOGDROPIN'
    Deleting chain `LOGDROPOUT'
    Deleting chain `PORTFLOOD'
    Deleting chain `UDPFLOOD'
    Flushing chain `INPUT'
    Flushing chain `FORWARD'
    Flushing chain `OUTPUT'
    Flushing chain `ALLOWDYNIN'
    Flushing chain `ALLOWDYNOUT'
    Flushing chain `ALLOWIN'
    Flushing chain `ALLOWOUT'
    Flushing chain `DENYIN'
    Flushing chain `DENYOUT'
    Flushing chain `INVALID'
    Flushing chain `INVDROP'
    Flushing chain `LOCALINPUT'
    Flushing chain `LOCALOUTPUT'
    Flushing chain `LOGDROPIN'
    Flushing chain `LOGDROPOUT'
    Flushing chain `PORTFLOOD'
    Flushing chain `UDPFLOOD'
    Deleting chain `ALLOWDYNIN'
    Deleting chain `ALLOWDYNOUT'
    Deleting chain `ALLOWIN'
    Deleting chain `ALLOWOUT'
    Deleting chain `DENYIN'
    Deleting chain `DENYOUT'
    Deleting chain `INVALID'
    Deleting chain `INVDROP'
    Deleting chain `LOCALINPUT'
    Deleting chain `LOCALOUTPUT'
    Deleting chain `LOGDROPIN'
    Deleting chain `LOGDROPOUT'
    Deleting chain `PORTFLOOD'
    Deleting chain `UDPFLOOD'
    Flushing chain `PREROUTING'
    Flushing chain `INPUT'
    Flushing chain `OUTPUT'
    Flushing chain `POSTROUTING'
    csf: FASTSTART loading DROP no logging (IPv4)
    csf: FASTSTART loading DROP no logging (IPv6)
    LOG  tcp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *TCP_IN Blocked* "
    LOG  tcp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   tcp flags:0x17/0x02 limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *TCP_OUT Blocked* "
    LOG  udp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *UDP_IN Blocked* "
    LOG  udp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *UDP_OUT Blocked* "
    LOG  icmp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *ICMP_IN Blocked* "
    LOG  icmp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *ICMP_OUT Blocked* "
    LOG  tcp opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *TCP6IN Blocked* "
    LOG  tcp opt    in * out *  ::/0  -> ::/0   tcp flags:0x17/0x02 limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *TCP6OUT Blocked* "
    LOG  udp opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *UDP6IN Blocked* "
    LOG  udp opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *UDP6OUT Blocked* "
    LOG  icmpv6 opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *ICMP6IN Blocked* "
    LOG  icmpv6 opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *ICMP6OUT Blocked* "
    LOG  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *Port Flood* "
    LOG  all opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *Port Flood* "
    DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0
    REJECT  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   reject-with icmp-port-unreachable
    DROP  all opt    in * out *  ::/0  -> ::/0
    REJECT  all opt    in * out *  ::/0  -> ::/0   reject-with icmp6-port-unreachable
    DENYOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    DENYIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    ALLOWOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    ALLOWIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    DENYOUT  all opt    in * out !lo  ::/0  -> ::/0
    DENYIN  all opt    in !lo out *  ::/0  -> ::/0
    ALLOWOUT  all opt    in * out !lo  ::/0  -> ::/0
    ALLOWIN  all opt    in !lo out *  ::/0  -> ::/0
    csf: FASTSTART loading Packet Filter (IPv4)
    csf: FASTSTART loading Packet Filter (IPv6)
    DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0
    INVALID  tcp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    INVALID  tcp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    DROP  all opt    in * out *  ::/0  -> ::/0
    INVALID  tcp opt    in !lo out *  ::/0  -> ::/0
    INVALID  tcp opt    in * out !lo  ::/0  -> ::/0
    csf: FASTSTART loading csf.deny (IPv4)
    ALLOWDYNIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    ALLOWDYNOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    ALLOWDYNIN  all opt    in !lo out *  ::/0  -> ::/0
    ALLOWDYNOUT  all opt    in * out !lo  ::/0  -> ::/0
    csf: FASTSTART loading csf.allow (IPv4)
    csf: FASTSTART loading csf.allow (IPv6)
      tcp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   tcp dpt:21 state NEW recent: SET name: 21 side: source mask: 255.255.255.255
    PORTFLOOD  tcp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   tcp dpt:21 state NEW recent: UPDATE seconds: 300 hit_count: 5 name: 21 side: source mask: 255.255.255.255
      tcp opt    in !lo out *  ::/0  -> ::/0   tcp dpt:21 state NEW recent: SET name: 21 side: source mask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    PORTFLOOD  tcp opt    in !lo out *  ::/0  -> ::/0   tcp dpt:21 state NEW recent: UPDATE seconds: 300 hit_count: 5 name: 21 side: source mask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0
    DROP  all opt    in * out *  ::/0  -> ::/0
    RETURN  udp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   owner UID match 0
    RETURN  udp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 100/sec burst 500
    LOG  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *UDPFLOOD* "
    REJECT  udp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   reject-with icmp-port-unreachable
    UDPFLOOD  udp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    RETURN  udp opt    in * out *  ::/0  -> ::/0   owner UID match 0
    RETURN  udp opt    in * out !lo  ::/0  -> ::/0   limit: avg 100/sec burst 500
    LOG  all opt    in * out *  ::/0  -> ::/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *UDPFLOOD* "
    REJECT  udp opt    in * out !lo  ::/0  -> ::/0   reject-with icmp6-port-unreachable
    UDPFLOOD  udp opt    in * out !lo  ::/0  -> ::/0
    ACCEPT  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   state RELATED,ESTABLISHED
    ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   state RELATED,ESTABLISHED
    ACCEPT  all opt    in !lo out *  ::/0  -> ::/0   state RELATED,ESTABLISHED
    ACCEPT  all opt    in * out !lo  ::/0  -> ::/0   state RELATED,ESTABLISHED
    csf: FASTSTART loading TCP_IN (IPv4)
    csf: FASTSTART loading TCP6_IN (IPv6)
    csf: FASTSTART loading TCP_OUT (IPv4)
    csf: FASTSTART loading TCP6_OUT (IPv6)
    csf: FASTSTART loading UDP_IN (IPv4)
    csf: FASTSTART loading UDP6_IN (IPv6)
    csf: FASTSTART loading UDP_OUT (IPv4)
    csf: FASTSTART loading UDP6_OUT (IPv6)
    ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 8 limit: avg 1/sec burst 5
    ACCEPT  icmp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   icmptype 0
    ACCEPT  icmp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   icmptype 8
    ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 0 limit: avg 1/sec burst 5
    ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 11
    ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 3
    ACCEPT  icmp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   icmptype 11
    ACCEPT  icmp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   icmptype 3
    ACCEPT  icmpv6 opt    in !lo out *  ::/0  -> ::/0
    ACCEPT  icmpv6 opt    in * out !lo  ::/0  -> ::/0
    ACCEPT  all opt -- in lo out *  0.0.0.0/0  -> 0.0.0.0/0
    ACCEPT  all opt -- in * out lo  0.0.0.0/0  -> 0.0.0.0/0
    LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    LOGDROPIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    ACCEPT  all opt    in lo out *  ::/0  -> ::/0
    ACCEPT  all opt    in * out lo  ::/0  -> ::/0
    LOGDROPOUT  all opt    in * out !lo  ::/0  -> ::/0
    LOGDROPIN  all opt    in !lo out *  ::/0  -> ::/0
    csf: FASTSTART loading DNS (IPv4)
    csf: FASTSTART loading DNS (IPv6)
    LOCALOUTPUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
    LOCALINPUT  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
    LOCALOUTPUT  all opt    in * out !lo  ::/0  -> ::/0
    LOCALINPUT  all opt    in !lo out *  ::/0  -> ::/0
    *WARNING* LF_DISTFTP sanity check. LF_DISTFTP = 40. Recommended range: 0-20 (Default: 0)
    *WARNING* LF_DISTFTP_UNIQ sanity check. LF_DISTFTP_UNIQ = 40. Recommended range: 2-20 (Default: 2)
    *WARNING* DENY_TEMP_IP_LIMIT sanity check. DENY_TEMP_IP_LIMIT = 2000. Recommended range: 10-1000 (Default: 100)
    
    *WARNING* RESTRICT_SYSLOG is disabled. See SECURITY WARNING in /etc/csf/csf.conf.
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    44,750
    10,204
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,814
    Local Time:
    7:38 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah that's normal csf firewall restart lists verbose output
     
  3. Altair

    Altair Member

    57
    3
    8
    Jan 27, 2018
    Ratings:
    +3
    Local Time:
    12:38 PM
    It seems my website is back, however still the homepage is redirecting to domain.com/xampp/

    Also
    Code:
    [03:02][root@hostname.domain.com public]# ping -c4 domain.com
    ping: domain.com: Name or service not known
    Just researched the sql I imported through notepad++ for any "xampp" and it returned 0 results!
     
    Last edited: Feb 9, 2018
  4. Altair

    Altair Member

    57
    3
    8
    Jan 27, 2018
    Ratings:
    +3
    Local Time:
    12:38 PM
    I noticed that if I create a xampp directory, the website then reports back 403 forbidden
     
  5. Altair

    Altair Member

    57
    3
    8
    Jan 27, 2018
    Ratings:
    +3
    Local Time:
    12:38 PM
    got the homepage to work, it was a problem with uploading files via filezilla vhost user and pwd, tried re-uploading files using winscp using root and password, it worked. the website no longer redirect to xampp

    However one thing I noticed, all popups(register/login) return error nginx. Also accessing the forum nodes/custom pages returns 404 not found! I use route filters, is there some configuration I'm missing? Or would that be database import issue? But if I go into admin > application > all the nodes are there

    @eva2000 ty for the support, what's the latest guide for setting up https, I noticed there is Nginx HTTP/2 and it is preferred over Google SPDY, is it the guide @ Nginx HTTP/2 protocol to succeed Google SPDY ? However as it appears it doesn't support all browsers, what would you suggest?
     
  6. Jon Snow

    Jon Snow Active Member

    527
    72
    28
    Jun 30, 2017
    Ratings:
    +116
    Local Time:
    6:38 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    I'm guessing you have fully friendly URLs enabled?

    You need to follow the instructions from this page - Friendly URLs | XenForo
     
  7. Altair

    Altair Member

    57
    3
    8
    Jan 27, 2018
    Ratings:
    +3
    Local Time:
    12:38 PM
    I have friendly urls enabled, and also have the nginx configuration lines from the url you referred me to in my vhost nginx conf.

    EDIT: everythings works on http, however the 404 not found is present when visiting https
     
  8. Jon Snow

    Jon Snow Active Member

    527
    72
    28
    Jun 30, 2017
    Ratings:
    +116
    Local Time:
    6:38 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    You need to add the same to your ssl vhost config file.
     
  9. eva2000

    eva2000 Administrator Staff Member

    44,750
    10,204
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,814
    Local Time:
    7:38 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x