In my ubuntu vps, it's running openerp. As it is public, so anyone can see this web interface. So I want to secure this web interface by pptp server or iptables. would you please give me suggest and how to do it ?
As my vps is command mode, i cant install gui ufw. In Ubuntu VPS, I just allow 2 mac address and these mac address just only see the web interface of openerp.
iptables -A INPUT -p tcp --dport 8080 -m mac --mac-source E0:CA:94:A7:C2:80 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -m mac --mac-source 4C:72:B9:0D5:B7 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP
but it not works. whats the problem?
You cannot use mac address rules when sources are outside of your internal network. Your vps knows only router mac address and other stations mac adresses which are in the same network. You can add the rules based on IP address.
█ Marcin Krupinski
█ Fast,reliable VPS and Dedicated Servers in Europe (Germany / Netherlands)
█ Red Hat Certified Engineer(RHCE)
Thank you hostineuro. Last two days I was trying by mac address. MattF: command mode means text mode.If I can do iptables so why we use ufw? would you please suggest which firewall am I used, iptables or ufw?? Anyway I configured pptp server in Ubuntu VPS and configured pptp client in my lan. but it not works(Error 806 and 619). Would you please help me?
My Requirement: In my Ubuntu VPS, Openerp is running. As it is public, we want to secure from web interface and only our office lan can access this openerp. But not all office lan users cann't access, just few users of the lan I want to get access lan.
Would you please help me and how can I do this?