1
1
10101010010001001101001112012-07-10 08:05:42
Network administration
1010101001000100110100111, 2012-07-10 08:05:42

I'm a Kettle: Your own router: A simple alternative to the hosts file for IP addresses: How to forward packets from one IP address to another?

If you enter a couple of these lines in the hosts file :

127.0.0.1 microsoft.com
127.0.0.1 65.55.58.201


Then the first one will work, and the second - fig. How to be?
I would like to have the simplest routing table (such as the iphosts file ) that could be edited in notepad.

How in Windows through the CMD / BAT file to make packets sent to one IP sent to another?
That is, so that from the command line (ess, but from under the admin) you can write something like:

C:\> FUCKIP.BAT 65.55.58.201 127.0.0.1

to redirect packets from 65.55.58.201 to 127.0.0.1, and command

C:\> FUCKIP.BAT 65.55.58.201

to just kill any packets on 65.55.58.201

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
poisons, 2012-07-10
@1010101001000100110100111

I suggest using the Windows command route

A
Alx, 2012-07-10
@gx2

Why did you call dns routing? And why should ip - ip in hosts work for you?

D
denvar, 2012-07-10
@denvar

or maybe just take any software firewall and close the call to this IP address in it?

S
smartlight, 2012-07-10
@smartlight

I advise you to use the route command or software fire to block access to a specific set of ip.

E
ekungurov, 2012-07-10
@ekungurov

What you want to do is called DNAT (Destination NAT). On Linux, this is done using iptables. How to do DNAT in Windows - figure it out for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question