Hallo Leute,
ich versuche mich derzeit in rdomains einzuarbeiten und habe mir zu diesem Zweck ein OpenBSD 6.0 mit 3 Interfaces aufgesetzt. Mein erster Anlaufpunkt was dieser Artikel: https://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/
Leider alles ohne Erfolg. Deshalb dachte ich ich frage einfach mal
Mein System hat drei Interfaces (em0, em1, em2).
hostname.em1:
inet 192.168.1.10 255.255.255.0 192.168.1.255
description "LAN"
hostname.em2:
rdomain 1
inet 192.168.2.10 255.255.255.0 192.168.2.255
description "DMZ"
!route -T 0 add 192.168.2.10 -iface 192.168.1.10
route -T 0 -n show -inet
Destination Gateway Flags Refs Use Mtu Prio Iface
default 172.16.151.2 UGS 0 13 - 8 em0
224/4 127.0.0.1 URS 0 0 32768 8 lo0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHl 1 1 32768 1 lo0
172.16.151/24 172.16.151.158 UC 2 0 - 4 em0
172.16.151.1 00:50:56:c0:00:08 UHLc 1 2 - 4 em0
172.16.151.2 00:50:56:fc:31:2a UHLc 1 6 - 4 em0
172.16.151.158 00:0c:29:91:68:3c UHLl 0 4 - 1 em0
172.16.151.255 172.16.151.158 UHb 0 0 - 1 em0
192.168.1/24 192.168.1.10 UC 0 0 - 4 em1
192.168.1.10 00:50:56:3d:38:b8 UHLl 0 5 - 1 em1
192.168.1.255 192.168.1.10 UHb 0 0 - 1 em1
192.168.2.10 192.168.1.10 UHS 0 1 - 8 em1
route -T 1 -n show -inet
Destination Gateway Flags Refs Use Mtu Prio Iface
192.168.2/24 192.168.2.10 UC 0 0 - 4 em2
192.168.2.10 00:0c:29:91:68:50 UHLl 0 0 - 1 em2
192.168.2.255 192.168.2.10 UHb 0 0 - 1 em2
pf.conf:
icmp_types="{ echoreq, unreach }"
pass out # establish keep-state
pass in
pass in on em1 inet rtable 1
pass inet proto icmp all icmp-type $icmp_types
Und nun, ping von rdomain 1 auf das Interface in rdomain 0:
route -T 1 exec ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
ping: sendto: No route to host
ping: wrote 192.168.1.10 64 chars, ret=-1
Ping von rdomain 0 auf das Interface in rdomain 1:
route -T 0 exec ping 192.168.2.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
ping: sendto: No route to host
ping: wrote 192.168.1.10 64 chars, ret=-1
Stehe komplett auf dem Schlauch :-/
Bin über jede Hilfe sehr dankbar
Schönen Gruß
ich versuche mich derzeit in rdomains einzuarbeiten und habe mir zu diesem Zweck ein OpenBSD 6.0 mit 3 Interfaces aufgesetzt. Mein erster Anlaufpunkt was dieser Artikel: https://www.packetmischief.ca/2011/09/20/virtualizing-the-openbsd-routing-table/
Leider alles ohne Erfolg. Deshalb dachte ich ich frage einfach mal

Mein System hat drei Interfaces (em0, em1, em2).
hostname.em1:
inet 192.168.1.10 255.255.255.0 192.168.1.255
description "LAN"
hostname.em2:
rdomain 1
inet 192.168.2.10 255.255.255.0 192.168.2.255
description "DMZ"
!route -T 0 add 192.168.2.10 -iface 192.168.1.10
route -T 0 -n show -inet
Destination Gateway Flags Refs Use Mtu Prio Iface
default 172.16.151.2 UGS 0 13 - 8 em0
224/4 127.0.0.1 URS 0 0 32768 8 lo0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHl 1 1 32768 1 lo0
172.16.151/24 172.16.151.158 UC 2 0 - 4 em0
172.16.151.1 00:50:56:c0:00:08 UHLc 1 2 - 4 em0
172.16.151.2 00:50:56:fc:31:2a UHLc 1 6 - 4 em0
172.16.151.158 00:0c:29:91:68:3c UHLl 0 4 - 1 em0
172.16.151.255 172.16.151.158 UHb 0 0 - 1 em0
192.168.1/24 192.168.1.10 UC 0 0 - 4 em1
192.168.1.10 00:50:56:3d:38:b8 UHLl 0 5 - 1 em1
192.168.1.255 192.168.1.10 UHb 0 0 - 1 em1
192.168.2.10 192.168.1.10 UHS 0 1 - 8 em1
route -T 1 -n show -inet
Destination Gateway Flags Refs Use Mtu Prio Iface
192.168.2/24 192.168.2.10 UC 0 0 - 4 em2
192.168.2.10 00:0c:29:91:68:50 UHLl 0 0 - 1 em2
192.168.2.255 192.168.2.10 UHb 0 0 - 1 em2
pf.conf:
icmp_types="{ echoreq, unreach }"
pass out # establish keep-state
pass in
pass in on em1 inet rtable 1
pass inet proto icmp all icmp-type $icmp_types
Und nun, ping von rdomain 1 auf das Interface in rdomain 0:
route -T 1 exec ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
ping: sendto: No route to host
ping: wrote 192.168.1.10 64 chars, ret=-1
Ping von rdomain 0 auf das Interface in rdomain 1:
route -T 0 exec ping 192.168.2.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
ping: sendto: No route to host
ping: wrote 192.168.1.10 64 chars, ret=-1
Stehe komplett auf dem Schlauch :-/
Bin über jede Hilfe sehr dankbar
Schönen Gruß