Jump to content
Vlachs

windows redirect ip

Recommended Posts

Posted

ok, deci stiti ce inseamna 127.0.0.1 google.ro in /etc/hosts, cine stie o solutie sa reusesc acelasi lucru numai ca in loc de domeniu sa fie un ip, gen 127.0.0.1 54.11.2.22, orica alta medota, aaa si sa nu imi spuneti sa pun in hosts pentru ca nu merge

multumesc anticipat

Posted (edited)

Stiu eu.

Iti configurezi un server DNS si pui la primary dns ip`ul serverului tau.

Restul configuratiei o declari in zona.

Daca vrei sa iti functioneze din exterior trebuie neaparat sa ai setat la primary dns ip`u serverului tau de DNS, altfel nu iti va merge.

Edit1: Trebuie sa mearga si cu route add, am uitat de varianta asta

Edit2: a... da.. si iptables ;-)

iptables -t nat -A PREROUTING -p tcp -d xx.xx.xx.xx --dport <port number> -j DNAT --to-destination yy.yy.yy.yy

P.S. E Zatarra cu doi R

Edited by Zatarra
Posted

ba merge cum a zis kwe

route add -p [ip] mask 255.255.255.255 [gw folosit] metric 1


>route add -p 8.8.8.9 mask 255.255.255.255 127.0.0.1 metric 1
OK!

edit: pentru a merge metoda asta [gw folosit] trebuie sa fie un ip dintr-un subnet la care ai access direct (fara hop in tracert)

Posted
ba merge cum a zis kwe

route add -p [ip] mask 255.255.255.255 [gw folosit] metric 1


>route add -p 8.8.8.9 mask 255.255.255.255 127.0.0.1 metric 1
OK!

edit: pentru a merge metoda asta [gw folosit] trebuie sa fie un ip dintr-un subnet la care ai access direct (fara hop in tracert)

tnx all, am reusit, mersi mult xander

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...