Mr Gabriel wrote:
If I configure a second virtual ip address on a device, will it always
send packets to the gateway configured, or to it's primary gateway.
I do not think Virtual IPs and gateways are somehow related.
For example, two ISPs configured, two firewalls configured, gateway IP's
192.168.1.1 and .2.
Part about 'two firewalls' is not clear, may be to Vitual IPs on LAN?
Internal server has IP 192.168.1.100 with gateway
.1. Incoming packets that have been forwarded from outside, (for
instance an SSH session), will be returned to .1 for routing back to the
internet.
If a virtual adapter is configured with ip 192.168.1.101 and a gateway
of .2 will traffic that is destined to 101, always be returned .2???
I am confused here but if you want different servers (.100 and .101) to
use different ISP you do not have to create virtual IPs. Use policy
based routing- chose appropriate gateways in rules depending on source
IP. If you want to route traffic from Internet to your servers using
different ISP then use NAT port forward with corresponding WAN Interfaces.
Evgeny.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Commercial support available - https://portal.pfsense.org