Rahmid93421 / CS-1.6-UDP-Proxy-Forwarder-Example

An example implementation of the https://github.com/Rahmid93421/cs1-6-udp-proxy-forwarder
2 stars 3 forks source link

Steam Masterserver #1

Open Rogozalexandru opened 5 months ago

Rogozalexandru commented 5 months ago

How could I make it appear in the steampowered masterserver

Rahmid93421 commented 5 months ago

To do this I used a machine with Ubuntu. Also you need to have iptables firewall on, because this method uses some rules to route the TCP packets.

If you managed to compile the c++ source code and you are on a ubuntu machine, all you have to do is to configure "start.py" file with the desired number of servers to be opened and the ports.

Rogozalexandru commented 5 months ago

I use ubuntu 22.04, I installed everything on it, for example if I start with python3 start.py it does not redirect the players with steam, if I start ./cs16_proxy_server 27015 it redirects the players, and one more thing when it redirects the players you can make the player not copy the IP of to redirect? If you help me I can pay you

În mie., 7 feb. 2024 la 17:59 Andrei @.***> a scris:

To do this I used a machine with Ubuntu. Also you need to have iptables firewall on, because this method uses some rules to route the TCP packets.

If you managed to compile the c++ source code and you are on a ubuntu machine, all you have to do is to configure "start.py" file with the desired number of servers to be opened and the ports.

— Reply to this email directly, view it on GitHub https://github.com/Rahmid93421/CS-1.6-UDP-Proxy-Forwarder-Example/issues/1#issuecomment-1932588107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOSRALYBURISTF2INRCDL3YSO6H3AVCNFSM6AAAAABC42SPA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGU4DQMJQG4 . You are receiving this because you authored the thread.Message ID: @.*** .com>

Rahmid93421 commented 5 months ago

I use ubuntu 22.04, I installed everything on it, for example if I start with python3 start.py it does not redirect the players with steam, if I start ./cs16_proxy_server 27015 it redirects the players, and one more thing when it redirects the players you can make the player not copy the IP of to redirect? If you help me I can pay you În mie., 7 feb. 2024 la 17:59 Andrei @.> a scris: To do this I used a machine with Ubuntu. Also you need to have iptables firewall on, because this method uses some rules to route the TCP packets. If you managed to compile the c++ source code and you are on a ubuntu machine, all you have to do is to configure "start.py" file with the desired number of servers to be opened and the ports. — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOSRALYBURISTF2INRCDL3YSO6H3AVCNFSM6AAAAABC42SPA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGU4DQMJQG4 . You are receiving this because you authored the thread.Message ID: @. .com>

If you cannot connect after running the python script, means that you are not using iptables and using ufw instead (my hypothesis). If the you were using iptables and everything was working correctly, when you were running the python script the new rules should have been applied. I have in plan on updating the original repo () to integrate the Steam masterserver registration by using the Steam api (less resources used and more convenient.

Also, what do you mean "when it redirects the players you can make the player not copy the IP of to redirect" ? This is a proxy, not a 'redirect' in the traditional term. Even if the players have the IP of the proxy, you still can use this to make your server more popular. Some things can be modified on your server side to allow players with the same IP.

Also, this is more like a proof-of-concept to demonstrate that is still possible to have 'fake' servers inside Steam masterserver.

Rogozalexandru commented 5 months ago

I have that error about iptables

@.***:~# iptables -A PREROUTING -t nat -i eth0 -p udp --dport $1 -j REDIRECT --to-port $2 iptables v1.8.7 (nf_tables): Port "-j" does not resolve to anything.

Try `iptables -h' or 'iptables --help' for more information.

În mie., 7 feb. 2024 la 18:19, Andrei @.***> a scris:

I use ubuntu 22.04, I installed everything on it, for example if I start with python3 start.py it does not redirect the players with steam, if I start ./cs16_proxy_server 27015 it redirects the players, and one more thing when it redirects the players you can make the player not copy the IP of to redirect? If you help me I can pay you În mie., 7 feb. 2024 la 17:59 Andrei @.

> a scris: … <#m-7123172782887708330> To do this I used a machine with Ubuntu. Also you need to have iptables firewall on, because this method uses some rules to route the TCP packets. If you managed to compile the c++ source code and you are on a ubuntu machine, all you have to do is to configure "start.py" file with the desired number of servers to be opened and the ports. — Reply to this email directly, view it on GitHub <#1 (comment) https://github.com/Rahmid93421/CS-1.6-UDP-Proxy-Forwarder-Example/issues/1#issuecomment-1932588107>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOSRALYBURISTF2INRCDL3YSO6H3AVCNFSM6AAAAABC42SPA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGU4DQMJQG4 https://github.com/notifications/unsubscribe-auth/AWOSRALYBURISTF2INRCDL3YSO6H3AVCNFSM6AAAAABC42SPA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGU4DQMJQG4 . You are receiving this because you authored the thread.Message ID: @. .com>

If you cannot connect after running the python script, means that you are not using iptables and using ufw instead (my hypothesis). If the you were using iptables and everything was working correctly, when you were running the python script the new rules should have been applied. I have in plan on updating the original repo ( https://github.com/Rahmid93421/cs1-6-udp-proxy-forwarder) to integrate the Steam masterserver registration by using the Steam api (less resources used and more convenient.

Also, what do you mean "when it redirects the players you can make the player not copy the IP of to redirect" ? This is a proxy, not a 'redirect' in the traditional term. Even if the players have the IP of the proxy, you still can use this to make your server more popular. Some things can be modified on your server side to allow players with the same IP.

Also, this is more like a proof-of-concept to demonstrate that is still possible to have 'fake' servers inside Steam masterserver.

— Reply to this email directly, view it on GitHub https://github.com/Rahmid93421/CS-1.6-UDP-Proxy-Forwarder-Example/issues/1#issuecomment-1932620408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOSRAPU3U62OTPQOB7KHJTYSPASZAVCNFSM6AAAAABC42SPA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGYZDANBQHA . You are receiving this because you authored the thread.Message ID: @.*** .com>

Rahmid93421 commented 5 months ago

iptables -A PREROUTING -t nat -i eth0 -p udp --dport $1 -j REDIRECT --to-port $2

That is mostly because the first argument ($1) is not passed to the rule (meaning no arguments are given). Try running: sudo ./clear_rules.sh; sudo ./exec.sh 27015 27115

And see if it works.

Rogozalexandru commented 5 months ago

Same like before , can i send you ip and password from machine private to check what is wrong ?