Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. root@spce:~# ngcp-network --set-interface=eth0:0 --ip=1.1.1.1 --type=sip_ext
  2. root@spce:~#
  3. root@spce:~# ngcpcfg diff
  4. diff --git a/network.yml b/network.yml
  5. index 55058d9..7af444e 100644
  6. --- a/network.yml
  7. +++ b/network.yml
  8. @@ -6,6 +6,10 @@ hosts:
  9. netmask: 255.255.255.0
  10. type:
  11. - ssh_ext
  12. + eth0:0:
  13. + ip: 1.1.1.1
  14. + type:
  15. + - sip_ext
  16. eth1:
  17. ip: 10.15.20.147
  18. netmask: 255.255.255.0
  19. @@ -19,6 +23,7 @@ hosts:
  20. - lo
  21. - eth0
  22. - eth1
  23. + - eth0:0
  24. lo:
  25. ip: 127.0.0.1
  26. netmask: 255.255.255.0
  27.  
  28. root@spce:~# cp /etc/kamailio/lb/xmlrpc.cfg /etc/kamailio/lb/xmlrpc.cfg_ORIG
  29. root@spce:~#
  30. root@spce:~# ngcpcfg build /etc/kamailio/lb/xmlrpc.cfg
  31. Generating /etc/kamailio/lb/xmlrpc.cfg: OK
  32. root@spce:~#
  33. root@spce:~# diff -u /etc/kamailio/lb/xmlrpc.cfg_ORIG /etc/kamailio/lb/xmlrpc.cfg
  34. --- /etc/kamailio/lb/xmlrpc.cfg_ORIG 2014-10-20 14:05:45.000000000 +0200
  35. +++ /etc/kamailio/lb/xmlrpc.cfg 2014-10-20 14:05:51.000000000 +0200
  36. @@ -6,7 +6,7 @@
  37. {
  38. xlog("L_INFO", "New XMLRPC request - M=$rm IP=$si:$sp\n");
  39.  
  40. - if($Ri == "192.168.11.11")
  41. + if($Ri == "192.168.11.11" || $Ri == "1.1.1.1")
  42. {
  43. xlog("L_WARN", "Reject XMLRPC request on external interface - M=$rm IP=$si:$sp\n");
  44. xmlrpc_reply("400", "XMLRPC not allowed");
  45.  
  46. root@spce:~# dpkg -S /etc/ngcp-config/templates/etc/kamailio/lb/xmlrpc.cfg.tt2
  47. ngcp-templates-ce-kamailio: /etc/ngcp-config/templates/etc/kamailio/lb/xmlrpc.cfg.tt2
  48. root@spce:~#
  49. root@spce:~# apt-cache policy ngcp-templates-ce-kamailio
  50. ngcp-templates-ce-kamailio:
  51. Installed: 2.8.22
  52. Candidate: 2.8.22
  53. Version table:
  54. *** 2.8.22 0
  55. 990 http://deb.sipwise.com/spce/2.8/ squeeze/main amd64 Packages
  56. 100 /var/lib/dpkg/status
  57. root@spce:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement