F
F
fdroid2017-06-27 17:37:53
FreeBSD
fdroid, 2017-06-27 17:37:53

How to redirect root tracker announcers in Nas4Free?

As you know, Roskomnadzor blocked access to rutracker announcers, as a result of which trackers do not connect, distributions are "red", downloading is carried out only via DHT. On Linux, this is done with one line in the terminal:

iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -d 195.82.146.120/30 -j DNAT --to-destination 163.172.167.207:3128

And it worked on Ubuntu Server. I honestly copy-pasted this from the rutracker forum, I don’t understand this (networks, firewalls) myself. But in N4F there is no iptables, but ipfw is used, if I understand correctly. How to do a similar feint in Nas4Free, preferably through the ipwf web configurator,
b865872528164f05aee98dfb2f110b17.png
because the rules that I, by analogy, tried to apply through the terminal, simply do not appear in the ipfw list after /etc/rc.d/ipfw restart, although, it seems, they are added , but they are not displayed in the web view.
Or something needs to be registered in "Static routes"?
f7379a6c4f8449f192df3b02326058e1.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
stoitli, 2017-06-27
@stoitli

Unless announcements not on DNS initially go?
Isn't it easier to write in the /etc/hosts file in this case?

D
Dmitry Shitskov, 2017-06-27
@Zarom

This setting is related to NAT. Are there NAT options in the Nas4Free interface?
Alternatively, the same setting can be made on the NAT of your router.

A
athacker, 2017-06-28
@athacker

You need to do DST NAT, the colleague above answered you correctly.
On IPFW, you can try this:
${cmd} add nat 1 tcp from <local_subnet_or_IP> to 195.82.146.120/30 80
${cmd} nat 1 config if <external_interface> redirect_port tcp 195.82.146.120:80 163.172.167.207:3128 \
redirect_port tcp 195.82.146.121:80 163.172.167.207:3128
\
redirect_port tcp 195.82.146.122:80 163.172.167.207:3128

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question