Step7. Set SBC Instance as a Gateway

Set SBC instance as the default gateway, so that the YMP can initiate outbound connections to the Internet through the SBC gateway.

  1. Log in the SBC server by SSH, type the following command:
    sudo echo 1 > /proc/sys/net/ipv4/ip_forward
    sudo iptables -t nat -A POSTROUTING -o SBCwaniface -j MASQUERADE
  2. Log in the YMP server by SSH, type the following command:
    sudo route del default dev YMPwaniface
    sudo route add default gw SBClanip dev YMPwaniface
  3. Type the following command to check if the configuration.
    sudo traceroute 8.8.8.8
    If the configuration is successful, the route table should show SBC internal IP address as the gateway IP.