Commit Graph

32 Commits

Author SHA1 Message Date
Harald Welte bfcca52af3 bankd: Don't use 127.0.0.1 as default IP address for the server
If remsim-bankd connects via 127.0.0.1 or any other loopback-routed
IP address to the remsim-server, then the getpername() of remsim-server
for the bankd will also render 127.0.0.1, and subsequently that IP
address will be provided to remsim-client as address to connect to.

In almost all setups, remsim-client will be running on a remote node and
hence not able to reach remsim-bankd at 127.0.0.1.

Let's turn the server-IP into a mandatory command line argument of
remsim-bankd and not use a problematic default value.

Change-Id: I3deb05e31cdf35232cf9a118d5a5fcdb5d0ab601
2023-07-21 11:10:15 +00:00
Stephan Skrodzki 239458e6b7 another csv example for our usb CCID reader
Change-Id: Iec17af23ee9c752facb88b4a497b42678af6065d
2023-06-11 19:32:00 +00:00
Harald Welte c8c77e08ee client: Option to ignore any ATR sent by bankd
This introduces an --atr-ignore-rspro command line argument, which
will make the remsim-client ignore any RSPRO setAtrReq it receives
from the remote bankd.

The purpose of this is to modify the capabilities advertised by the card
towards the UE (modem/phone).  For example, by modifying the ATR
one can disable/constrain the UE from using higher bit rate support, or
disable the use of logical channels.

Change-Id: I930293f7b637dba60d9dd6d2254f4524f831b491
2022-07-24 13:01:07 +02:00
Harald Welte 628672bc72 bankd: Open PC/SC by default in EXCLUSIVE mode
Let's open the cards in EXCLUSIVE mode, we don't want other applications
tinkering with the card state while we have a bankd worker running on
it.  This change also means that no two bankd workers can trip on
each other accidentially anymore.

Related: OS#5527
Change-Id: I43a1c8c7bd1c0124ee5f605e2e5b04ed8f7836ab
2022-07-15 08:22:29 +02:00
Harald Welte 4e0e5b8d17 Install + package remsim-apitool as separate sub-package
As the script depends on python3, let's put it into a new
osmo-remsim-apitool package.

As we're installing the tool system-wide, rename it from
remsim-apitool.py to osmo-remsim-apitool.

Closes: OS#5612
Change-Id: I11d779f66833b5294ffeb422ce6b2a705719a899
2022-07-13 07:21:37 +00:00
Harald Welte 55f12b8e38 Fix client_id/bank_id/slot_nr range in manual + --help output
The RSPRO.asn protocol defines the ranges 0..1023 for slot, bank
and client IDs.  Don't make misleading claims in manual and/or
help messages.

Change-Id: Id383b2bea4c014e7b61ae02e7062ba4db5c2dc20
2022-01-16 14:35:25 +01:00
Harald Welte 7f9ebce8b5 manual: Update changelog, copyright, version
Change-Id: I25f249a81f24f161fb2cf6df37ae217a5d425f8b
2021-12-09 15:40:37 +01:00
Harald Welte f5f30e2de8 manual: update remsim-client options to match --help output
* remove options that have been removed from code
* re-order options to match the order of the --help ouptut

Change-Id: Id4436b980c6a4691f3403ece400b90695a786e09
2021-12-09 15:40:15 +01:00
Harald Welte 6a93cfb1e9 manual: Document the logging configuration
Change-Id: I66f5fe2e55c7e4cb6cc8ce09dcd8a636c717a5a0
2021-12-09 15:12:05 +01:00
Harald Welte a06d77f073 manual: fix formating of a bullet point list in bankd csv file part
Change-Id: Ib56dbfae4ebf14321bfed855291341a50f862148
2021-02-19 19:04:12 +01:00
Harald Welte 753c8aa87a bankd: regex matching of reader names
So far, bankd did a 1:1 string match of the CSV file line against
the reader name.  As pcsc-lite reader names unfortunately tend to
change at times, we introduce matching by regular expressions in
this patch.

Change-Id: I58b71f9562e152e7ed21b55d7b876bba481b01f8
2021-02-03 08:46:21 +00:00
Harald Welte 830026a9c0 doc: Add documentation for remsim-apitool.py
Change-Id: I0e280cd4276e1aff7d6f694ac4affbca0336eba5
2020-03-04 16:21:34 +01:00
Harald Welte 5103ea0a43 doc: More cross-references; Expand overview slightly
Change-Id: Ic290627ec2512a2b59cb9d81704b9cec4d14ccf4
2020-03-04 16:21:34 +01:00
Harald Welte ddbe43a366 doc: Add WARNINGs about lack of security in protocols
Change-Id: I72c0b797fda220b9efcc86bd08717585063db591
2020-03-04 16:21:34 +01:00
Harald Welte e18069aa81 doc: generalize the remsim-client part in the overview section
Change-Id: I56f7955b05395abe70bf6ad2f0d33843bc6f77b9
2020-03-04 16:21:34 +01:00
Harald Welte 9fac496046 client: ifd_handler (PC/SC reader driver) as remsim-client
This adds a "libifd_remsim_client.so" PC/SC driver that can be
used to make normal PC/SC client programs (like pySim, sysmo-usim-tool,
osmo-sim-test, osmo-usim-auth, ...) talk to a remote SIM bank.

Change-Id: Ib8707c6e0e46407ab39a693adfec2fa71892f6ee
2020-03-04 15:49:37 +01:00
Harald Welte 8c0adf681f client: Add diagram for osmo-remsim-st2 use case
Change-Id: Iddd870ddbadc2b6570deb00ea6886c3b34ea1e38
2020-03-04 15:17:59 +01:00
Harald Welte a8e2db9ae3 client: document osmo-remsim-client-shell
Change-Id: I7db510982194ae4f6b9ab8bc442587ecdbf52684
2020-03-04 15:17:59 +01:00
Harald Welte 55c7f44194 remsim-client: Call an external script in specific situations
There are some situations where remsim-client would want to make its
surrounding system aware of, e.g. to take specific action.

This is particularly important on platforms where the simtrace2 firmware
doesn't have direct control over modem reset/poweron or the like.

Change-Id: I61cf4d93c669db137de801f8b147dcffaa6f3abd
Depends: libosmocore.git Ib24ac8a083db32e55402ce496a5eabd8749cc888
Closes: OS#4332
2020-02-16 15:41:56 +01:00
Harald Welte 32e204c83d doc/manuals: Use correct path (osmo-remsim-doc)
Change-Id: I16a56af66a450e6bb19a53c652d6f93d35aacb8e
2019-07-23 20:27:46 +02:00
Harald Welte bb9e32ea1a usermanual: disable non-existant architecture chapter
Change-Id: I897fb528990d8cf47bd0796603b79bff5fd94bc0
2019-07-23 20:21:58 +02:00
Martin Hauke 4e87bebcc7 Fix common misspellings and typos
Change-Id: I8152acaccd33a4b646d56cba0748aeefa0c16b35
2019-07-17 22:11:52 +02:00
Joachim Steiger c8bc5e707c add examples to remsim-server (json output)
Change-Id: I102a79a5d1f0055586a9fa1f9688acd4258f585b
2019-07-09 16:55:17 +02:00
Joachim Steiger 68f95100bf add examples to the command line options for remsim-bankd and remsim-client
Change-Id: Idfa6352ce90dd36dd27306d6c8a2023935ed822d
2019-07-09 16:55:17 +02:00
Harald Welte 33a3e8779c doc: Describe how to obtains PC/SC reader string names
Change-Id: Ic99d9561281080c6865f512c2b819cf6cfc7a1e2
2019-05-29 20:14:59 +02:00
Harald Welte 3afbf73564 doc: REST API url is /banks, not /bankds
The documentation didn't agree with the code. Let's fix it

Change-Id: I63771c7ecc975435b8b7415ffb5e0a51fb5acef0
Closes: OS#3963
2019-05-08 17:23:58 +02:00
Harald Welte 51cfec03b1 rename executables to include osmo- name prefix
Change-Id: I4498a004519499cc4b897a68c7f33efe29a63425
2019-04-03 09:50:04 +02:00
Harald Welte 2513d81625 bankd: move bank_id / num_slots from g_bankd to remsim_srv_conn
... and make num_slots configurable via command line argument

Change-Id: Id8f15085b397186d3470f4d943979857b6811a52
2019-04-01 21:07:02 +02:00
Harald Welte 0138bb40b4 manuals: remove <<>> from RSPRO to fix rendering
Change-Id: Ifa97f314fa5eb36785b179aeba8062948deb5ef1
2019-04-01 11:04:04 +02:00
Harald Welte 35f2b201bb manuals: Add description from README.md to manual
Change-Id: I38db6f5723b8f02920abd70bf10c2a134060d183
2019-04-01 11:01:51 +02:00
Harald Welte 3c4d006146 Add initial osmo-remsim usermanual
Change-Id: I1d9231b24b1481afcbb5758662b7d99bd59e7fdb
2019-04-01 10:52:17 +02:00
Harald Welte 5bae20b64d bankd: Add command-line arguments for IP/port/etc configuration
Change-Id: Ifafdd7ea005347f39d9adad2b50cf81609b41cba
2019-04-01 10:48:17 +02:00