Hi,
I have a OpenBSD 4.9 with 3 NICs. For testing purposes pf is disabled. I can connect to services (eg. ssh) from internet via 1st ISP (shh 78.w.x.y, ping works) but i cant connect via 2nd ISP (ssh 178.w.x.y, ping dosent work). I would like to reach my server from two ISP at the same time. Here is my config:
1st NIC (gateway for lan):
Code:
fxp0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1b:21:22:f3:82
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::21b:21ff:fe22:f382%fxp0 prefixlen 64 scopeid 0x3
inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
2nd NIC - pppoe0 via bge0 (1st ISP)
Gateway: 87.w.x.y
Code:
pppoe0: flags=8951<UP,POINTOPOINT,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1492
priority: 0
dev: bge0 state: session
sid: 0x1504 PADI retries: 1 PADR retries: 0 time: 21:47:47
sppp: phase network authproto pap authname "xxxxxxxxxxxx@y.pl"
groups: pppoe egress
status: active
inet6 fe80::21b:21ff:feb5:5899%pppoe0 -> prefixlen 64 scopeid 0x6
inet 78.w.x.y --> 87.w.x.y netmask 0xffffffff
3rd (2nd ISP)
Gateway: 178.w.x.254
Code:
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1b:xx:xx:xx:xx
description: 2/2
priority: 0
media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
status: active
inet6 fe80::21b:21ff:feb5:5899%em0 prefixlen 64 scopeid 0x1
inet 178.w.x.y netmask 0xffffff00 broadcast 178.w.x.255
route show -inet
Code:
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default 87.w.x.y UGS 6 1010372 - 8 pppoe0
87.w.x.y 78.w.x.y UH 1 0 - 4 pppoe0
127/8 127.0.0.1 UGRS 0 0 33200 8 lo0
127.0.0.1 127.0.0.1 UH 0 511 33200 4 lo0
178.w.x/24 link#1 UC 8 0 - 4 em0
178.w.x.6 00:25:9c:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.34 00:25:9c:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.64 00:25:9c:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.65 00:25:9c:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.116 00:25:9c:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.139 68:7f:74:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.140 68:7f:74:xx:xx:xx UHLc 0 0 - 4 em0
178.w.x.254 00:1b:21:xx:xx:xx UHLc 0 0 - 4 em0
192.168.1/24 link#3 UC 51 0 - 4 fxp0
224/4 127.0.0.1 URS 0 0 33200 8 lo0
dmesg
Code:
em0 at pci3 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00: apic 2 int 18 (irq 3), address 00:1b:xx:xx:xx:xx
fxp0 at pci6 dev 0 function 0 "Intel 8255x" rev 0x0c, i82550: apic 2 int 21 (irq 11), address 00:1b:xx:xx:xx:xx
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
bge0 at pci5 dev 0 function 0 "Broadcom BCM5722" rev 0x00, BCM5755 C0 (0xa200): apic 2 int 17 (irq 10), address 00:22:xx:xx:xx:xx
brgphy0 at bge0 phy 1: BCM5722 10/100/1000baseT PHY, rev. 0
Forwarding is enabled:
Code:
sysctl net.inet.ip.forwarding=1
Thank you for any hints.