On Monday, 22 May 2017 17:55:10 ACST jdd@dodin.org wrote:
Le 22/05/2017 à 09:39, jdd@dodin.org a écrit :
how can I do that only for a domain/IP?
with some luck I may have found a solution...
Starting here:
https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref erence/cha.basicnet.html
"13.4.1.5 Configuring Routing"
I didn't understand how to add several default routes with yast, but
* removing the "dhcp automatic add gateway" on general network options tab * going to "route" tab, adding 62.210.204.211, 192.168.0.254 gateway and wlan0
* adding 192.168.1.1 (my eth0 gateway) eth0 as default gateway
seems to give what I need
Yes - that is exactly what you needed to do - you've now set a specific route to that one IP address via the wlan0 interface.
# route -n Table de routage IP du noyau Destination Passerelle Genmask Indic Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 62.210.204.211 192.168.0.254 255.255.255.255 UGH 0 0 0 wlan0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 192.168.0.254 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
random web:
# traceroute opensuse.org traceroute to opensuse.org (130.57.5.70), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 0.338 ms 0.426 ms 0.625 ms 2 31tls2-nro-2.nro.gaoland.net (109.24.76.82) 5.673 ms 5.711 ms 5.742 ms (...)
my special IP:
# traceroute free-reseau.fr traceroute to free-reseau.fr (62.210.204.211), 30 hops max, 60 byte packets 1 192.168.0.254 (192.168.0.254) 2.642 ms 2.906 ms 3.246 ms 2 * * * 3 * * *
And that shows that it works as expected. :)
and I can reach the page with firefox
thanks jdd
YW. Glad you got is sorted. :) -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ============================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org