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
Akama Aka @ Kokorokon
Do you mean just allow cloudflare IP's to access your Server?
Akama Aka @ Kokorokon
Gist
Firewalld nftables CloudFlare IP Whitelisting
Firewalld nftables CloudFlare IP Whitelisting. GitHub Gist: instantly share code, notes, and snippets.
Mattyu
MattyuOP8mo 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
Akama Aka @ Kokorokon
Ahh Then you can use the Rules sec Yes Rules > Origin Rules Then it should work without port
Mattyu
MattyuOP8mo ago
and how i have to setup this rule?
Mattyu
MattyuOP8mo ago
idk how to setup it
Akama Aka @ Kokorokon
:kitty_dead:
Mattyu
MattyuOP8mo ago
When incoming requests match… idk here
Akama Aka @ Kokorokon
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
Akama Aka @ Kokorokon
Like that
No description
Mattyu
MattyuOP8mo ago
in the set the port of the rewrite i have to put the port to cover or the port default of the service?
Akama Aka @ Kokorokon
Yes The port you have to enter atm
Mattyu
MattyuOP8mo ago
not working
Akama Aka @ Kokorokon
But it should What issue you have rn?
Mattyu
MattyuOP8mo ago
No description
Mattyu
MattyuOP8mo ago
No description
Mattyu
MattyuOP8mo 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
Akama Aka @ Kokorokon
Uhhh it needs to be proxied
Mattyu
MattyuOP8mo ago
i have to enable dns only?
Akama Aka @ Kokorokon
uh nuh uh if its just because its on a unsupported Port
Mattyu
MattyuOP8mo ago
then i can't?
Akama Aka @ Kokorokon
It should be possible Thats how I did it too
Mattyu
MattyuOP8mo ago
it's a teamspeak server idk
Akama Aka @ Kokorokon
oh then not idk just can speak then of HTTP(s) things
Mattyu
MattyuOP8mo ago
i need to convert the port to like 9987
Akama Aka @ Kokorokon
okay. Then CloudFlare can't really help there I guess
Mattyu
MattyuOP8mo ago
u have some other solution i cna try?
Akama Aka @ Kokorokon
Not really atm
Mattyu
MattyuOP8mo ago
okay thanks u anywats

Did you find this page helpful?