Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I have a question I to redirect traffic from port x and y to 53. I mean like this
Code:
iptables -t nat -A PREROUTING -p udp --dport 53 -m string --algo bm --from 20 --hex-string "|02743107776f726d6e657402657500|" -j REDIRECT --to-ports x, y, z
So Destination port should be 53
Ok...so what's your question??? Have you tried the command you put in here?? What's the problem/issue you're having and trying to solve by doing this??
redirect the traffic locally to different ports based on the domain name in incoming packets
Quote:
Originally Posted by TB0ne
Ok...so what's your question??? Have you tried the command you put in here?? What's the problem/issue you're having and trying to solve by doing this??
I have installed iodine server on my VPS but the number of connected users at same time is limited #16 , I tried to use different ports for each domain, but as you know dns tunnel works only on port 53 now my question is redirect traffic of multiport to 53, so my purpose is to increase the number of connected users
This is iodine tunnel https://code.kryo.se/iodine/
Last edited by radwan1998; 08-03-2022 at 11:36 AM.
Ok...so what's your question??? Have you tried the command you put in here?? What's the problem/issue you're having and trying to solve by doing this??
The command I put here is wrong for multiport, but it should look like it
I have installed iodine server on my VPS but the number of connected users at same time is limited #16 , I tried to use different ports for each domain, but as you know dns tunnel works only on port 53 now my question is redirect traffic of multiport to 53, so my purpose is to increase the number of connected users
This is iodine tunnel https://code.kryo.se/iodine/
...and...
Quote:
Originally Posted by radwan1998
The command I put here is wrong for multiport, but it should look like it
Did you read the iodine docs?? The part where they *EXPLICITLY SAY* that it can only handle 16 users??? Iodine only supports 16 users, period...and there are iptables commands on the iodine github page. Tried any of those?
If you want more than 16 users, start a second instance listening on another port.
Did you read the iodine docs?? The part where they *EXPLICITLY SAY* that it can only handle 16 users??? Iodine only supports 16 users, period...and there are iptables commands on the iodine github page. Tried any of those?
If you want more than 16 users, start a second instance listening on another port.
Yes, for one domain it works fine , but it support only 16 users,
I want more than 16 users, I tried but I don't know how should the iptables look like.
I can Listening on another port, but dns traffic should go through 53 always
That is the problem
Last edited by radwan1998; 08-03-2022 at 12:09 PM.
Did you read the iodine docs?? The part where they *EXPLICITLY SAY* that it can only handle 16 users??? Iodine only supports 16 users, period...and there are iptables commands on the iodine github page. Tried any of those?
If you want more than 16 users, start a second instance listening on another port.
(((Make the server listen on 'port' instead of 53 for traffic. If 'listen_ip' does not include localhost, this 'port' can be the same as 'dnsport'. Note: You must make sure the dns requests are forwarded to this port yourself.)))
So the question how to forward requests from multiport to 53
Yes, for one domain it works fine , but it support only 16 users, I want more than 16 users, I tried but I don't know how should the iptables look like. I can Listening on another port, but dns traffic should go through 53 always That is the problem
That's not a problem, that's what it's designed to do, isn't it??? Route IPv4 traffic through DNS, which is port 53. And what you WANT is not what iodine DOES...it supports 16 users, period. Want more?? Then rewrite the code to do what you want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.