Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Ukrycie/zmiana docelowego IP.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
olejseba
n00b
n00b


Joined: 04 Sep 2005
Posts: 52

PostPosted: Thu Jan 28, 2010 5:31 pm    Post subject: [SOLVED] Ukrycie/zmiana docelowego IP. Reply with quote

Witam.
Mam następujący problem. Mam aplikację która ma wkompilowane IP serwera docelowego. Chciałbym by system (iptables/routing) przechwytywał i podmieniał go na inny. Jednak moja znajomość Iptables i routnigu się skończyła. Może znacie jakieś inne możliwości.
Pozdrawiam SOL :roll:


Last edited by olejseba on Sat Jan 30, 2010 3:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2375
Location: Poland

PostPosted: Thu Jan 28, 2010 7:07 pm    Post subject: Reply with quote

Code:
iptables -j DNAT --help


za pomocą iptables możesz podmienić adres docelowy.
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
olejseba
n00b
n00b


Joined: 04 Sep 2005
Posts: 52

PostPosted: Sat Jan 30, 2010 3:08 pm    Post subject: Reply with quote

Super dzięki działa bez problemu, ;-).
Code:
 /sbin/iptables -t nat -A OUTPUT --dst 192.168.2.2 -p tcp --dport 80 -j DNAT --to-destination 192.168.2.1:80

Pozdrawiam SOL
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum