The 317-2PN/DP supports Profinet-IO and TCP/IP connection, so maybe something could be done towards your application using the integrated Ethernet interface.
However the setup required goes beyond simply connecting to your ISP's line.
Here is a link to a series of FAQs discussing WAN setup and remote Internet connections for Siemens equipment.