- simple udp proxy solution
- 4 Answers 4
- Not the answer you’re looking for? Browse other questions tagged proxy udp or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- udpxy
- IPTV stream relay
- Core features:
- LINUX — Жизнь в консоли ЕСТЬ.
- Главное меню
- Последние статьи
- Счетчики
- IP-TV за NATом
- http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Re: http proxy && udp
- Udp proxy для linux
- About
simple udp proxy solution
I am looking for solution that can proxy my udp packets. I have one client sending udp packets to a server. Connection between them is very bad and I get lot of packet loss. One solution is to have a new proxy server that will just redirect all packets from client to destination server. The new proxy server has good connection to both locations.
So far I have found Simple UDP proxy/pipe
Are there some tools for such purpose ?
4 Answers 4
I also wrote a Python script for this one day. This one goes both ways:
Usage: udp-relay.py localPort:remoteHost:remotePort
Then, point your UDP application to localhost:localPort and all packets will bounce to remoteHost:remotePort .
All packets sent back from remoteHost:remotePort will be bounced back to the application, assuming it is listening on the port it just sent packets from.
Here is Python code written for this purpose:
I used this two scripts to test it.
This version sends one reply back. It’s good for one client only.
Here is a working TCP or UDP Redirector / UDP Proxy / UDP Pipe / TCP Proxy / TCP Pipe
I created many different models of UDP Proxy connection bouncers and they all seem to lose connection using the standard Sockets class, but using UDPClient classes this problem completely went away.
The UDP Proxy is only 25 lines of code but the power and stability is off the charts
Below is examples how to do it in both TCP and UDP
Not the answer you’re looking for? Browse other questions tagged proxy udp or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
udpxy
Simple, elegant, fast
IPTV stream relay
udpxy (‘you-dee-pixie’) is a data stream relay: it reads data streams from a multicast groups and forwards the data to the requesting clients (subscribers). udpxy is designed to serve a small number of clients and is best suited for home usage.
Core features:
- Lightweight: less than 100K in size (if compiled in «lean» mode);
- Portable: builds on almost any POSIX-compliant OS, no hardware dependencies imposed;
- Resource-efficient: runs on devices with limited resources (RAM, CPU);
- UDP-to-TCP: UDP multicast in, TCP unicast out;
- RTP stripping: RTP over MPEG-TS in, plain MPEG-TS out;
- Built-in video recorder: outbound stream recorded on schedule (through udpxrec);
- Web-enabled: web-based control and display of status and traffic statistics;
- Highly tunable: message queue and buffer size controlled by command-line switches;
udpxy was written to build on any POSIX-compliant system, with the minumum of external dependencies and configuration steps; it was also designed to maintain a small memory footprint and run on devices with limited resources (CPU, RAM, etc.).
udpxy is free and open source: it is licensed under GNU GPLv3. This quick guide explains the license in easily understandable terms. udpxy is community-supported, there is no official support for it, but you can always ask the community or email the author.
udpxy has been around since 2008, it is included in the firmware of many IPTV-enabled routers. However, its development has been on hold since 2012, with most of the effort routed toward enterprise-grade products, such as Gigapxy, RoWAN, GigA+ and GigaTools.
Источник
LINUX — Жизнь в консоли ЕСТЬ.
Главное меню
Последние статьи
Счетчики
IP-TV за NATом
Имеется сервер под debian linux, раздающий интернет по локалке. Выход в сеть провайдера и интернет с машин-клиентов через сервер уже настроен (Это отдельная тема, здесь не описывается). Провайдер предоставляет услугу ip-tv через мультикаст, необходимо настроить возможность использования ip-tv в своей локалке.
Сразу добавим маршрут к подсети, откуда ведется трансляция (узнаем у провайдера или смотрим, какие ip в плейлисте есть). Для псковлайна маршрут выглядит так:
route add -net 239.1.0.0 netmask 255.255.0.0 dev eth0
где eth0 — интерфейс, смотрящий во внешнюю сеть.
Теперь установим udpxy — сервер, который принимает multicast поток, идущий по UDP-протоколу и поступающий на внешний интерфейс, подключенный к провайдеру, и отдает его по запросу со стороны компьютера локальной сети уже по TCP-протоколу.
качаем udpxy, например отсюда:
tar -xzvf udpxy.1.0-Chipmunk-13.tgz
Заходим в папку:
cd udpxy-1.0-Chipmunk-13
make
make install
Перемещаем исполняемый файл udpxy, например в /usr/local/sbin/ :
mv udpxy /usr/local/sbin/
/usr/local/sbin/udpxy -a ra0 -m eth0 -p 8888 -S -l /var/log/udpxy.log -B 2048K -c 2
(Можно добавить в автозапуск, например добавив в файл /etc/rc.local эту команду и заодно маршрут, что вбили выше).
-a — интерфейс, который будет слушать udpxy в ожидании tcp-запросов;
-m — интерфейс, на который приходит мультикаст;
-p — прослушиваемый tcp-порт;
-B — размер буфера;
-S — вести статистику соединений;
-l — указание пути к файлу логов.
-c — колличество клиентов, имеющих возможность одновременно использовать ip-tv.
(В настройках фаервола сервера необходимо разрешить трафик к серверу на этот порт, если доступ по локалке ограничен)
Теперь качаем плейлист, в моем примере плейлист псковлайна:
wget http://pskovline.tv/tv.m3u
и изменяем ссылки в плейлисте под наши настройки:
sed -e ‘s/^udp:\/\/\@/http:\/\/192.168.10.1:8888\/udp\//’ -i tv.m3u
где 192.168.10.1 — сервер с udpxy
Теперь можно открывать плейлист плеером vlc и наслаждаться зомбоящиком)
Источник
http proxy && udp
возможно ли зарулить udp трафик (с помощью дополнительного софта на стороне клиента) через http proxy? (squid, настраивать его могу как угодно). Если да, то с помощью чего? Софт ес-сно под линукс нужен
Re: http proxy && udp
объясни задачу поконкретнее
Re: http proxy && udp
Посмотри в сторону стунеля и нетката. Сквид это http(s,icmp. ). И не очень удобен для кулхацкеров.
Re: http proxy && udp
есть сервак с инетом, есть обычный пользователь (не рут), нужно получить с него полноценный инет, вместе с udp (тоесть игры и прочее). Так как это не рут vpn исключается.
Re: http proxy && udp
Re: http proxy && udp
почему никак? неужели нету стороннего софта (необязательно прокся) которая смогла бы такое обеспечить? Ведь инет обычному юзеру доступен, пересылать пакеты от меня до этой машины возможно, в чем проблема?
Re: http proxy && udp
> есть сервак с инетом, есть обычный пользователь (не рут), нужно получить с него полноценный инет, вместе с udp (тоесть игры и прочее). Так как это не рут vpn исключается.
чится Учится и еще рас учится. Для начала базовые вещи. rfc 791. TCP/IP howto. И.Т.Д. ip-subnetwork-howto. Можеш почитать FREEBSD handbook. Там о сети кратко и о главном.
Re: http proxy && udp
Не тормози. Наганяй уровень.
Re: http proxy && udp
и что мне конкретно нужно от всего этого? Как устроены базовые вещи я себе представляю, я сюда задал вопрос, для «направления меня на верный путь», а не отсыланию куда подальше учить неизвестно что. В принципе выделив на это дело время я добьюсь чего хотел (возьму оттуда инет, с помощью чего-то), но думал есть люди, которые могут поделится готовым опытом.
Re: http proxy && udp
конечно я изначально ошибся, жестко привязав тему к http proxy
Источник
Udp proxy для linux
A proxy server program written in C++ that can forward TCP or UDP packets to and from some pre-configured address. It’s a transparent proxy in that remote clients only have to change their destination IP/PORT into those of the proxy, and the proxy will automatically forword packets according to pre-configured rules.
A typical usage scenario is to bypass a company firewall that blocks packets from some limited internal IP/Subnets.
It can also be used for simulating public network environment in an intranet by configuring bandwidth limit, network delay, or packet drop rate(only for UDP).
[Install] Boost Library is required. Please look into src/Makefile to find out how Boost libs are linked, and you can change the path according to your environment.
On Linux: $cd src $make
On Windows: Becasue the project is cross-platform, it can be compiled as a Visual Studio C++ project. What you have to do is to create a project and import all files under src dir, also remember to link those Boost libs listed in Makefile.
[Configuration and Usage] Refer to the comments in proxy.conf to see how to configure the forwarding rules. A typical proxy.conf looks like:
The 1st line shows the proxy will open local tcp port 3443 to receive new connections which are to be forwarded directly to and from remote address 180.166.47.38/3443.
The 2nd line does similar functions, the difference is it also imposes a bandwidth limit of 100K/S in both directions.
The 3rd line is a rule to forward UDP packets, from local port 6500 to remote address 10.35.60.1/6500, and also in reverse direction. Additionally, it indicates a bandwidth limit of 100K/S, a delay of 100ms, and a packet drop rate of 10%, in both directions.
About
A proxy server program written in C++ that can forward TCP or UDP packets
Источник