Please read and understand carefully as to what I need to get done. Step #4 requires Shell Scripting knowledge!
I would like a business website preferably in Wordpress/Joomla or any of the easily content management system. The looks of the site and layout should be IDENTICAL to Juniper Networks - http://www.juniper.net. This business site allows clients to book their Cisco Lab time for the purpose of practice in preparation for their exam. The finished site will be hosted from my NAS - Synology RS812. Here is an overview of how the site should flow:
1. Clients are presented with a registration section requesting their first name, last name, email, password and a graphical calender for them to book a date and defined time interval; 4, 8 12, 24, 48, and 72 hours. (These variables are stored for later use)
2. When the date(s) and time are selected, a "Book Now" button is displayed which redirects them to a PayPal payment page.
3. Once the payment is processed and verified, PayPal is to redirect back to the business site - point #6.
4. (Backend) At this time, I require some kind of shell script to execute in the background opening up a SSH session to communicate with my Cisco PIX515e firewall on the network. That SSH session is to remain open for commands to be executed on the firewall to create a VPN login account for the client with the above variables stated in point #1. For example:
The command in the shell script it requires to execute is to establish a SSH session with the Cisco firewall first:
"ssh username@[login to view URL]"
Second command is to set the date and time the user selected from step #1 (Say the client picked 8:00AM to start and 4 hours of lab time they booked) It should know how to compute 8:00AM + 4 Hours = 12:00PM:
config terminal
!
time-range ([login to view URL])
absolute start 08:00 02 September 2013 end 12:00 02 September 2013
!
group-policy TSYSTEMS.LAB.([login to view URL]) internal
group-policy [login to view URL] ([login to view URL]) attributes
vpn-access-hours value [login to view URL]
vpn-tunnel-protocol IPSec
!
username ([login to view URL]) password ([login to view URL]) encrypted privilege 0
username client attributes
vpn-group-policy [login to view URL]
service-type remote-access
!
end
write memory
* ([login to view URL]) = first character of first name appended with the last name all in small caps.
* ([login to view URL]) = whatever password the user setup upon registration.
5. (Backend) Once the account is create, the SSH session with the firewall is terminated.
exit
!
6. The WebVPN page is displayed from the Cisco PIX515e. This page does not need to be created as it's already provided by the firewall. Only a redirect to this page is needed after the PayPal site.
7. The client is then able to login and authenticate with the VPN server.
8. Upon expiration of the client's date booking (1 hour after end date/time), the configs are to be removed from the Cisco Firewall (Reverse of Step #4):
config terminal
!
no username client attributes
no username ([login to view URL]) password ([login to view URL]) encrypted privilege 0
!
no group-policy TSYSTEMS.LAB.([login to view URL]) internal
no group-policy [login to view URL] ([login to view URL]) attributes
no vpn-access-hours value [login to view URL]
no vpn-tunnel-protocol IPSec
!
no time-range ([login to view URL])
no absolute start 08:00 02 September 2013 end 12:00 02 September 2013
!
end
write memory