ip and ports

how can i make an ip disappear the port like i have a ts server connected to the port * but i want to put the default one in that way i can leave that empty how can i do all within cloudflare?
31 Replies
Kasumi
Kasumi11mo ago
Do you mean just allow cloudflare IP's to access your Server?
Kasumi
Kasumi11mo ago
Gist
Firewalld nftables CloudFlare IP Whitelisting
Firewalld nftables CloudFlare IP Whitelisting. GitHub Gist: instantly share code, notes, and snippets.
! AMattyu
! AMattyuOP11mo ago
i have the ip like x.x.x.x:y i don't want that it work like sub.domain.com:y but i want sub.domain.com
Kasumi
Kasumi11mo ago
Ahh Then you can use the Rules sec Yes Rules > Origin Rules Then it should work without port
! AMattyu
! AMattyuOP11mo ago
and how i have to setup this rule?
Kasumi
Kasumi11mo ago
Yes
! AMattyu
! AMattyuOP11mo ago
idk how to setup it
Kasumi
Kasumi11mo ago
:kitty_dead:
! AMattyu
! AMattyuOP11mo ago
When incoming requests match… idk here
Kasumi
Kasumi11mo ago
1. Enter a Rule Name 2. On "IF" select Custom filter expression 3. Selec tin the first box Hostname, in the second equals and in the third then your Domain and Subdomain 4. Click on Rewrite to… and set the Port
Kasumi
Kasumi11mo ago
Like that
No description
! AMattyu
! AMattyuOP11mo ago
in the set the port of the rewrite i have to put the port to cover or the port default of the service?
Kasumi
Kasumi11mo ago
Yes The port you have to enter atm
! AMattyu
! AMattyuOP11mo ago
not working
Kasumi
Kasumi11mo ago
But it should What issue you have rn?
! AMattyu
! AMattyuOP11mo ago
No description
! AMattyu
! AMattyuOP11mo ago
No description
! AMattyu
! AMattyuOP11mo ago
i have done the ip with an A connection after i put the same ip on the rules with the connection to the port 26236
Kasumi
Kasumi11mo ago
Uhhh it needs to be proxied
! AMattyu
! AMattyuOP11mo ago
i have to enable dns only?
Kasumi
Kasumi11mo ago
uh nuh uh if its just because its on a unsupported Port
! AMattyu
! AMattyuOP11mo ago
then i can't?
Kasumi
Kasumi11mo ago
It should be possible Thats how I did it too
! AMattyu
! AMattyuOP11mo ago
it's a teamspeak server idk
Kasumi
Kasumi11mo ago
oh then not idk just can speak then of HTTP(s) things
! AMattyu
! AMattyuOP11mo ago
i need to convert the port to like 9987
Kasumi
Kasumi11mo ago
okay. Then CloudFlare can't really help there I guess
! AMattyu
! AMattyuOP11mo ago
u have some other solution i cna try?
Kasumi
Kasumi11mo ago
Not really atm
! AMattyu
! AMattyuOP11mo ago
okay thanks u anywats
Kasumi
Kasumi11mo ago
Np

Did you find this page helpful?