aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_vty.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-04nat: Show if we are connected to the MSC.Holger Hans Peter Freyther1-0/+2
2010-08-04nat: Indent the connected... to make it belong to the BSC groupHolger Hans Peter Freyther1-1/+1
2010-08-03Use new include paths of libosmo-sccp 0.0.2Harald Welte1-1/+1
2010-07-31nat: Fix compilation with nat not being enabled.Holger Hans Peter Freyther1-0/+1
common_vty.c was including bsc_nat.h which tried to get the sccp/sccp_types.h which is not required to be installed. Move all structs using/embedding SCCP structures into the bsc_nat_sccp.h and include. This should fix the compilation.
2010-07-27nat: Rename ip-tos to ip-dscp and provide an alias...Holger Hans Peter Freyther1-5/+11
2010-07-22nat: Provide an easy view to see if something is connected to the NAT.Holger Hans Peter Freyther1-0/+12
2010-07-22nat: Introduce a show statistics-by-lac LACHolger Hans Peter Freyther1-13/+43
Currently show show statistics only work by given the internal configuration number, add a version that is working by LAC of the BSC.
2010-06-17nat: Switch per BSC counters to the rate ctr.Holger Hans Peter Freyther1-5/+2
This is switching the simple statistics to the rate counter and is updating all users...
2010-06-17nat: Rename BSC_NODE to NAT_BSC_NODE to avoid future issues.Holger Hans Peter Freyther1-10/+10
2010-06-17nat: Add the exit/end command to the NAT config nodes.Holger Hans Peter Freyther1-0/+4
2010-06-15nat: Attempt to update the VTY usage to the latest versionHolger Hans Peter Freyther1-16/+8
* Install the show commands to be available in the enable mode as well * Provide a copyright header..
2010-06-15nat: Fix the access-list-name command...Holger Hans Peter Freyther1-2/+2
We have added two commands with the same name to the tree.. the second one should have been the BSC...
2010-06-15nat: Allow to specify multiple entries in the access-list...Holger Hans Peter Freyther1-8/+27
Inside the access-list we have a list of entries that have either one allow or one deny rule... we do not allow to remove a single rule but one has to remove the whole list, in that case talloc will handle cleaning all entries. Right now the matching is O(n*m) as we traverse the list (multiple times) and run the regexp multiple times. One way to make it faster would be to concat all regexps into one.
2010-06-15nat: Shorten the access-list struct and method names (still way too long)Holger Hans Peter Freyther1-8/+8
2010-06-15[nat] Implement the removal of an access-list.Holger Hans Peter Freyther1-0/+17
2010-06-15[nat] Fix the parsing of the access-list regexp...Holger Hans Peter Freyther1-2/+2
We need to start at argv[1] for the regexp of this access-list, also subtract one from number of items..
2010-06-15[nat] Fix VTY bug with access-lists...Holger Hans Peter Freyther1-4/+2
vty->index does not hold a BSC Config at this point as we are on the nat level... use the global _nat pointer for now...
2010-06-15[nat] Introduce the concept of access-listHolger Hans Peter Freyther1-35/+75
One can set one access-list to one BSC and one access-list to one NAT. The matching of IMSIs remains the same for now, also applying the white/blacklist. Access lists can not be deleted for now and no perf opt is done (e.g. one could cache the result of the last lookup in the bsc struct).
2010-06-15[nat] Add ip-tos option to the nat.Holger Hans Peter Freyther1-0/+10
This is applied to all incoming BSC connections.
2010-06-15[nat] Use and print the connection type of a SCCP connection.Holger Hans Peter Freyther1-1/+2
2010-06-15[nat] Remove the imsi allow option on the nat level.Holger Hans Peter Freyther1-13/+0
For now we have: 1.) bsc imsi deny to deny at the BSC level 2.) bsc imsi allow to allow a SIM at the BSC level 3.) nat imsi deny to deny at the global level
2010-06-15[nat] Add a token to the nat config and handle ID GETHolger Hans Peter Freyther1-0/+13
This allows to chain a nat with a nat by answering to the id get code and sending the token.
2010-06-15[nat] Add a regexp test command to the VTY.Holger Hans Peter Freyther1-0/+19
This allows to test the regexp to be used for allo/deny of the imsi filter.
2010-06-15[nat] Fix the imsi deny config write.Holger Hans Peter Freyther1-1/+1
2010-06-15[nat] Allow to set the description for the bsc.Holger Hans Peter Freyther1-0/+21
This will allow to add description to each BSC.
2010-06-15[nat] Make the string -> regexp parsing publicHolger Hans Peter Freyther1-18/+4
This way it can be used from within a test case to test the regexps..
2010-06-15[nat] Use A.B.C.D for the IP addressHolger Hans Peter Freyther1-1/+1
The VTY code will then be able to validate the IP Address.
2010-06-15[nat] Remove range checks inside the VTY command.Holger Hans Peter Freyther1-6/+0
The ranges are enforced by the VTY code.
2010-06-15nat: Print the MSC status with a new vty command.Holger Hans Peter Freyther1-0/+18
2010-06-15nat: Make ping/pong timeout configurable.Holger Hans Peter Freyther1-0/+33
2010-06-15nat: Allow to only show statistics for a given BSC Cfg.Holger Hans Peter Freyther1-1/+9
2010-06-15nat: Fix vty output for connected BSCsHolger Hans Peter Freyther1-1/+1
2010-06-15nat: Do not use \n in the vty code.Holger Hans Peter Freyther1-5/+5
When we really need a newline we need to use VTY_NEWLINE.
2010-06-15nat: Add a command to close a given BSC ConnectionHolger Hans Peter Freyther1-0/+19
This can be used to clear stale connections for a given BSC or to force a reconnect of the BSC.
2010-06-15nat: Print the remote reference as well.Holger Hans Peter Freyther1-1/+5
2010-06-15nat: Use show bsc config for showing the configuration.Holger Hans Peter Freyther1-2/+2
2010-06-15[nat] Fix the vty option... use the right argument.Holger Hans Peter Freyther1-1/+1
2010-06-15[nat] Add option to forbid the paging to the BSC.Holger Hans Peter Freyther1-0/+19
This can be done for testing purposes and to allow making a BTS crash that can not handle paging requests properly.
2010-06-15nat: Make sccp/bsc show connections more Cisco like...Holger Hans Peter Freyther1-4/+4
Second attempt to use a syntax more comparable to 'Cisco', I have never used such a system... let us see how this is going.
2010-06-15nat: Remove the SHOW_STR from none show commands.Holger Freyther1-3/+3
2010-06-15nat: Make the MSC configurable.Holger Hans Peter Freyther1-0/+11
2010-06-15nat: Move MSC ip address into the config..Holger Hans Peter Freyther1-0/+11
The address can still be specified on the cli and it will overwrite the config in the config file.
2010-06-15nat: Two fixes for the write memory case...Holger Hans Peter Freyther1-1/+1
Add new BSCs to the tail so we keep the sort order when writing them out to the vty, fix the LAC command.
2010-06-15nat: Add config option to filter/handle certain imsi'es.Holger Hans Peter Freyther1-0/+74
2010-06-15[nat] Add show statistics to the natHolger Hans Peter Freyther1-0/+30
2010-06-15[nat] Change the command stringsHolger Hans Peter Freyther1-3/+3
Put the Target/Object first... Apparently this is more what people that know IOS expect to do.
2010-06-15nat: Print the IP address of the connected BSCsHolger Hans Peter Freyther1-2/+7
2010-06-15nat: Store the config in the connection instead of the lacHolger Hans Peter Freyther1-4/+7
This allows that we can print the Nr. next to the lac and it allows us to change the lac at runtime without reconnecting the BSC.
2010-06-15nat: Add logging commands for the nat as well.Holger Hans Peter Freyther1-0/+3
2010-06-15nat: Print the SCCP ref's as hex numbersHolger Hans Peter Freyther1-1/+1
This allows to more easily compare the numbers with traces seen in wireshark.