ip alias
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines
You say "it will not let me out". Is that out to the internet ? I can't see the use for the above :
- You assign an ip alias to eth0:0
- You forward all traffic coming in on eth0 (that is directed to the aliased ip 192.168.1.23) to 161.31.31.23
By doing this you won't get access to the internet.
but, how would you forward outgoing traffic to this address? So all traffic generated on 192.168.1.23 is see coming from 161.31.31.23?
john
Quoted 11 lines · John Black
Quoted 6 lines
You say "it will not let me out". Is that out to the internet ? I can't see the use for the above :
- You assign an ip alias to eth0:0
- You forward all traffic coming in on eth0 (that is directed to the aliased ip 192.168.1.23) to 161.31.31.23
By doing this you won't get access to the internet.but, how would you forward outgoing traffic to this address? So all traffic generated on 192.168.1.23 is see coming from 161.31.31.23?
john
it sounds like you're trying to do this:
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.23 \
-j SNAT --to-source 161.31.31.23-j
Signature · 1 line
Jason Opperisano <[email protected]>
Quoted 11 lines · John Black
Quoted 6 lines
You say "it will not let me out". Is that out to the internet ? I can't see the use for the above :
- You assign an ip alias to eth0:0
- You forward all traffic coming in on eth0 (that is directed to the aliased ip 192.168.1.23) to 161.31.31.23
By doing this you won't get access to the internet.but, how would you forward outgoing traffic to this address? So all traffic generated on 192.168.1.23 is see coming from 161.31.31.23?
john
You can use SNAT to do this, just make a rule that does SNAT from 192.168.1.23 to 161.31.31.23.
Signature · 12 lines
Jose Maria Lopez Hernandez Director Tecnico de bgSEC [email protected] bgSEC Seguridad y Consultoria de Sistemas Informaticos http://www.bgsec.com ESPAÑA The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. -- Jack Kerouac, "On the Road"